b48de6763643780a748f795f94a98f844b0b4db6
[openwrt/staging/adrian.git] /
1 From 87c5e8883898e7eb8e9637e212350c1925a22654 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 30 Jun 2020 14:18:57 +0200
4 Subject: [PATCH 09/19] 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 @@ -299,6 +299,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;