703c81d04c4e659384f98eb5997b92944ae4b66d
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 005-mesh-update-ssid-frequency-as-pri-sec-channel-switch.patch
1 From c56f18380d1d404a2abc0ea5373d294508ef1e54 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Mon, 27 Aug 2018 14:28:41 -0700
4 Subject: [PATCH 2/7] mesh: update ssid->frequency as pri/sec channel switch
5
6 ssid->frequency is one of variables used to gets channel
7 number from given frequency. Leave it as unchanged when
8 pri/sec channel switched will cause picking up wrong
9 channel number after applying secondary channel offset
10 for HT40 and leads failing interface bring-up.
11
12 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
13 ---
14 wpa_supplicant/mesh.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- a/wpa_supplicant/mesh.c
18 +++ b/wpa_supplicant/mesh.c
19 @@ -286,6 +286,7 @@ static int wpa_supplicant_mesh_init(stru
20 frequency == freq->freq + freq->sec_channel_offset * 20) {
21 wpa_printf(MSG_DEBUG, "mesh: pri/sec channels switched");
22 frequency = freq->freq;
23 + ssid->frequency = frequency;
24 }
25 wpa_s->assoc_freq = frequency;
26 wpa_s->current_ssid = ssid;