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
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.
12 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
14 wpa_supplicant/mesh.c | 1 +
15 1 file changed, 1 insertion(+)
17 --- a/wpa_supplicant/mesh.c
18 +++ b/wpa_supplicant/mesh.c
19 @@ -287,6 +287,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;
25 wpa_s->assoc_freq = frequency;
26 wpa_s->current_ssid = ssid;