005-mesh-update-ssid-frequency-as-pri-sec-channel-switch.patch 987 B

1234567891011121314151617181920212223242526
  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. ssid->frequency is one of variables used to gets channel
  6. number from given frequency. Leave it as unchanged when
  7. pri/sec channel switched will cause picking up wrong
  8. channel number after applying secondary channel offset
  9. for HT40 and leads failing interface bring-up.
  10. Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
  11. ---
  12. wpa_supplicant/mesh.c | 1 +
  13. 1 file changed, 1 insertion(+)
  14. --- a/wpa_supplicant/mesh.c
  15. +++ b/wpa_supplicant/mesh.c
  16. @@ -287,6 +287,7 @@ static int wpa_supplicant_mesh_init(stru
  17. frequency == freq->freq + freq->sec_channel_offset * 20) {
  18. wpa_printf(MSG_DEBUG, "mesh: pri/sec channels switched");
  19. frequency = freq->freq;
  20. + ssid->frequency = frequency;
  21. }
  22. wpa_s->assoc_freq = frequency;
  23. wpa_s->current_ssid = ssid;