diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-14 12:38:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-11-15 18:49:12 +0100 |
commit | d91494eedf06ac6b31c1aa9f7172871b16af96c8 (patch) | |
tree | 179fa470b2a6e6afb3fe29d9edb48479487c293b /package/kernel | |
parent | 0da54fa6428ea98d31b49f5d9a4a272214f5d188 (diff) | |
download | upstream-d91494eedf06ac6b31c1aa9f7172871b16af96c8.tar.gz upstream-d91494eedf06ac6b31c1aa9f7172871b16af96c8.tar.bz2 upstream-d91494eedf06ac6b31c1aa9f7172871b16af96c8.zip |
hostapd: rework frequency/ht/vht selection for ibss/mesh
- Remove obsolete patch chunks regarding fixed_freq
- Instead of patching in custom HT40+/- parameters, use the standard
config syntax as much as possible.
- Use fixed_freq for mesh
- Fix issues with disabling obss scan when using fixed_freq on mesh
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 703609b147..cdc155405e 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -524,7 +524,7 @@ mac80211_setup_supplicant() { mac80211_setup_supplicant_noctl() { wpa_supplicant_prepare_interface "$ifname" nl80211 || return 1 - wpa_supplicant_add_network "$ifname" + wpa_supplicant_add_network "$ifname" "$freq" "$htmode" wpa_supplicant_run "$ifname" } @@ -637,6 +637,7 @@ mac80211_setup_vif() { authsae_start_interface || failed=1 else wireless_vif_parse_encryption + freq="$(get_freq "$phy" "$channel")" mac80211_setup_supplicant_noctl || failed=1 fi else @@ -694,6 +695,7 @@ mac80211_setup_vif() { wireless_vif_parse_encryption mac80211_setup_adhoc_htmode if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ]; then + freq="$(get_freq "$phy" "$channel")" mac80211_setup_supplicant_noctl || failed=1 else mac80211_setup_adhoc |