aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-14 12:38:08 +0100
committerFelix Fietkau <nbd@nbd.name>2017-11-15 18:49:12 +0100
commitd91494eedf06ac6b31c1aa9f7172871b16af96c8 (patch)
tree179fa470b2a6e6afb3fe29d9edb48479487c293b /package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch
parent0da54fa6428ea98d31b49f5d9a4a272214f5d188 (diff)
downloadupstream-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/network/services/hostapd/patches/464-fix-mesh-obss-check.patch')
-rw-r--r--package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch b/package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch
new file mode 100644
index 0000000000..3833539489
--- /dev/null
+++ b/package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch
@@ -0,0 +1,19 @@
+--- a/wpa_supplicant/wpa_supplicant.c
++++ b/wpa_supplicant/wpa_supplicant.c
+@@ -2010,11 +2010,13 @@ void ibss_mesh_setup_freq(struct wpa_sup
+ for (j = 0; j < wpa_s->last_scan_res_used; j++) {
+ struct wpa_bss *bss = wpa_s->last_scan_res[j];
+
+- if (ssid->mode != WPAS_MODE_IBSS)
++ /* Don't adjust control freq in case of fixed_freq */
++ if (ssid->fixed_freq) {
++ obss_scan = 0;
+ break;
++ }
+
+- /* Don't adjust control freq in case of fixed_freq */
+- if (ssid->fixed_freq)
++ if (ssid->mode != WPAS_MODE_IBSS)
+ break;
+
+ if (!bss_is_ibss(bss))