diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-15 16:09:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-15 16:09:23 +0000 |
commit | 7ff276afd3b305ff77b57f21bb5277010b36ab7d (patch) | |
tree | f08bb161e77947442c1fad6e7027710d8290ca6b /package/network/services/hostapd/files/netifd.sh | |
parent | 7dbbdfb61f99a765ff02d40daa1d63c769df41ef (diff) | |
download | master-31e0f0ae-7ff276afd3b305ff77b57f21bb5277010b36ab7d.tar.gz master-31e0f0ae-7ff276afd3b305ff77b57f21bb5277010b36ab7d.tar.bz2 master-31e0f0ae-7ff276afd3b305ff77b57f21bb5277010b36ab7d.zip |
hostapd: remove bogus default setting for wps_pin (#17873)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42553
Diffstat (limited to 'package/network/services/hostapd/files/netifd.sh')
-rw-r--r-- | package/network/services/hostapd/files/netifd.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index 7cdcb52c3d..aa44b393c3 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -290,7 +290,6 @@ hostapd_set_bss_options() { set_default wps_device_type "6-0050F204-1" set_default wps_device_name "OpenWrt AP" set_default wps_manufacturer "openwrt.org" - set_default wps_pin "12345670" wps_state=2 [ -n "$wps_configured" ] && wps_state=1 @@ -298,7 +297,7 @@ hostapd_set_bss_options() { [ "$ext_registrar" -gt 0 -a -n "$network_bridge" ] && append bss_conf "upnp_iface=$network_bridge" "$N" append bss_conf "eap_server=1" "$N" - append bss_conf "ap_pin=$wps_pin" "$N" + [ -n "$wps_pin" ] && append bss_conf "ap_pin=$wps_pin" "$N" append bss_conf "wps_state=$wps_state" "$N" append bss_conf "ap_setup_locked=0" "$N" append bss_conf "device_type=$wps_device_type" "$N" |