From: Felix Fietkau Date: Tue, 8 Oct 2013 11:09:48 +0000 (+0000) Subject: hostapd: add external registrar support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9beaea6fc28fa47eaed8c8eea96fd1ca6939cf3d;p=openwrt%2Fstaging%2Fjow.git 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 Signed-off-by: Mathieu Olivari Signed-off-by: Luis R. Rodriguez SVN-Revision: 38338 --- diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index ce0f2271de..f856a0b739 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -196,6 +196,9 @@ hostapd_set_bss_options() { config_get manufacturer "$vif" wps_manufacturer "openwrt.org" config_get wps_pin "$vif" wps_pin "12345670" + config_get_bool ext_registrar "$vif" ext_registrar 0 + [ "$ext_registrar" -gt 0 -a -n "$bridge" ] && append "$var" "upnp_iface=$bridge" "$N" + append "$var" "eap_server=1" "$N" append "$var" "ap_pin=$wps_pin" "$N" append "$var" "wps_state=${wps_not_configured:-2}" "$N"