diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-01-16 10:13:51 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-01-16 10:26:21 +0200 |
commit | 702c70264b388c2b47e171843f297f43c71b86b9 (patch) | |
tree | 68dd391328f144250dfee6e317c7c541d6b2ca83 /package/network/services | |
parent | bda6b6144dbe3e12d128b500821799ef472de4cb (diff) | |
download | upstream-702c70264b388c2b47e171843f297f43c71b86b9.tar.gz upstream-702c70264b388c2b47e171843f297f43c71b86b9.tar.bz2 upstream-702c70264b388c2b47e171843f297f43c71b86b9.zip |
hostapd: cleanup IBSS-RSN
set noscan also for IBSS and remove redundant/obsolete variable.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/network/services')
-rw-r--r-- | package/network/services/hostapd/Makefile | 2 | ||||
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index cc06a7abb6..231c2c1b88 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hostapd -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_URL:=http://w1.fi/hostap.git PKG_SOURCE_PROTO:=git diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index c1f8e7f071..b52d305f95 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -729,12 +729,9 @@ wpa_supplicant_prepare_interface() { local ap_scan= _w_mode="$mode" - _w_modestr= [[ "$mode" = adhoc ]] && { ap_scan="ap_scan=2" - - _w_modestr="mode=1" } local country_str= @@ -815,6 +812,7 @@ wpa_supplicant_add_network() { [[ "$_w_mode" = "adhoc" ]] && { append network_data "mode=1" "$N$T" [ -n "$freq" ] && wpa_supplicant_set_fixed_freq "$freq" "$htmode" + [ "$noscan" = "1" ] && append network_data "noscan=1" "$N$T" scan_ssid="scan_ssid=0" @@ -834,8 +832,6 @@ wpa_supplicant_add_network() { scan_ssid="" } - [ "$_w_mode" = "adhoc" -o "$_w_mode" = "mesh" ] && append network_data "$_w_modestr" "$N$T" - [ "$multi_ap" = 1 -a "$_w_mode" = "sta" ] && append network_data "multi_ap_backhaul_sta=1" "$N$T" case "$auth_type" in |