Skip to content
Snippets Groups Projects
Commit 9beaea6f authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarMathieu Olivari <mathieu@qca.qualcomm.com>
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@qca.qualcomm.com>

SVN-Revision: 38338
parent 246e9b44
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,9 @@ hostapd_set_bss_options() { ...@@ -196,6 +196,9 @@ hostapd_set_bss_options() {
config_get manufacturer "$vif" wps_manufacturer "openwrt.org" config_get manufacturer "$vif" wps_manufacturer "openwrt.org"
config_get wps_pin "$vif" wps_pin "12345670" 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" "eap_server=1" "$N"
append "$var" "ap_pin=$wps_pin" "$N" append "$var" "ap_pin=$wps_pin" "$N"
append "$var" "wps_state=${wps_not_configured:-2}" "$N" append "$var" "wps_state=${wps_not_configured:-2}" "$N"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment