aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSteven Honson <steven@honson.id.au>2017-01-14 22:22:24 +1100
committerJo-Philipp Wich <jo@mein.io>2017-01-26 14:41:31 +0100
commitc0ed04ce459670cefc27370e04304c01993ce9b2 (patch)
tree48aaf9e5da96847d36134ec3bd79127f787bd396 /package
parentc0345d93a284d8def24fd482404fde1dbec92002 (diff)
downloadupstream-c0ed04ce459670cefc27370e04304c01993ce9b2.tar.gz
upstream-c0ed04ce459670cefc27370e04304c01993ce9b2.tar.bz2
upstream-c0ed04ce459670cefc27370e04304c01993ce9b2.zip
hostapd: default to wps_independent 1
Signed-off-by: Steven Honson <steven@honson.id.au>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/netifd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index dfe4100d81..988ebc7757 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -329,6 +329,7 @@ hostapd_set_bss_options() {
set_default wps_device_type "6-0050F204-1"
set_default wps_device_name "Lede AP"
set_default wps_manufacturer "www.lede-project.org"
+ set_default wps_independent 1
wps_state=2
[ -n "$wps_configured" ] && wps_state=1
@@ -342,8 +343,8 @@ hostapd_set_bss_options() {
append bss_conf "device_name=$wps_device_name" "$N"
append bss_conf "manufacturer=$wps_manufacturer" "$N"
append bss_conf "config_methods=$config_methods" "$N"
+ append bss_conf "wps_independent=$wps_independent" "$N"
[ -n "$wps_ap_setup_locked" ] && append bss_conf "ap_setup_locked=$wps_ap_setup_locked" "$N"
- [ -n "$wps_independent" ] && append bss_conf "wps_independent=$wps_independent" "$N"
[ "$wps_pbc_in_m1" -gt 0 ] && append bss_conf "pbc_in_m1=$wps_pbc_in_m1" "$N"
}