mac80211: fix not set noscan option for wpa_supplicant

noscan option was changed to hostapd_noscan but the entry in
wpa_supplicant was never updated resulting in the noscan option actually
never set.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 1070fbce6e)
[ rework for openwrt-22.03 ]
This commit is contained in:
Christian Marangi 2023-11-08 16:44:38 +01:00
parent bb2b55f376
commit 6e77f51b3a
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -753,7 +753,7 @@ mac80211_setup_supplicant() {
if [ "$mode" = "sta" ]; then
wpa_supplicant_add_network "$ifname"
else
wpa_supplicant_add_network "$ifname" "$freq" "$htmode" "$noscan"
wpa_supplicant_add_network "$ifname" "$freq" "$htmode" "$hostapd_noscan"
fi
NEWSPLIST="${NEWSPLIST}$ifname "
@ -783,7 +783,7 @@ mac80211_setup_supplicant_noctl() {
return 1
}
wpa_supplicant_add_network "$ifname" "$freq" "$htmode" "$noscan"
wpa_supplicant_add_network "$ifname" "$freq" "$htmode" "$hostapd_noscan"
NEWSPLIST="${NEWSPLIST}$ifname "
[ "$enable" = 0 ] && {