Changeset 38338


Ignore:
Timestamp:
2013-10-08T13:09:48+02:00 (4 years ago)
Author:
nbd
Message:

hostapd: add external registrar support

Setting wireless.@wifi-iface[N].ext_registrar=1 will enable UPNP
advertising and add an external registrar to the interface this vif
belongs to (br-lan if the vif is included in the LAN bridge). By
enabling this we append upnp_iface=xxx to the hostapd config file.

Signed-off-by: Sujith Manoharan <c_manoha@…>
Signed-off-by: Mathieu Olivari <mathieu@…>
Signed-off-by: Luis R. Rodriguez <mcgrof@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/hostapd/files/hostapd.sh

    r38336 r38338  
    197197                config_get wps_pin "$vif" wps_pin "12345670" 
    198198 
     199                config_get_bool ext_registrar "$vif" ext_registrar 0 
     200                [ "$ext_registrar" -gt 0 -a -n "$bridge" ] && append "$var" "upnp_iface=$bridge" "$N" 
     201 
    199202                append "$var" "eap_server=1" "$N" 
    200203                append "$var" "ap_pin=$wps_pin" "$N" 
Note: See TracChangeset for help on using the changeset viewer.