007-mesh-apply-channel-attributes-before-running-Mesh.patch 964 B

123456789101112131415161718192021222324252627282930313233
  1. From 8190aab3344ae9746c897093f88f3679239d135d Mon Sep 17 00:00:00 2001
  2. From: Peter Oh <[email protected]>
  3. Date: Tue, 17 Apr 2018 21:55:04 -0700
  4. Subject: [PATCH 07/16] mesh: apply channel attributes before running Mesh
  5. This helps mesh interface initializes with correct
  6. channel parameters.
  7. Signed-off-by: Peter Oh <[email protected]>
  8. ---
  9. wpa_supplicant/mesh.c | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. --- a/wpa_supplicant/mesh.c
  12. +++ b/wpa_supplicant/mesh.c
  13. @@ -337,6 +337,8 @@ static int wpa_supplicant_mesh_init(stru
  14. conf->basic_rates[rate_len] = -1;
  15. }
  16. + wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
  17. +
  18. if (hostapd_setup_interface(ifmsh)) {
  19. wpa_printf(MSG_ERROR,
  20. "Failed to initialize hostapd interface for mesh");
  21. @@ -348,8 +350,6 @@ static int wpa_supplicant_mesh_init(stru
  22. return -1;
  23. }
  24. - wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
  25. -
  26. return 0;
  27. out_free:
  28. wpa_supplicant_mesh_deinit(wpa_s);