[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hostap
Subject:    [PATCH v2 10/12] mesh: fix mesh_oom test
From:       Markus Theil <markus.theil () tu-ilmenau ! de>
Date:       2020-06-30 12:19:05
Message-ID: 20200630121907.132751-11-markus.theil () tu-ilmenau ! de
[Download RAW message or body]

Only change freq params, if ifmsh->freq is set initially, which only
happens if hostapd_get_hw_features in setup_interface2 succeeds.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
---
 wpa_supplicant/mesh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 0742cabbc..383ec1c7b 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -218,7 +218,7 @@ static int wpas_mesh_complete(struct wpa_supplicant *wpa_s)
 	 * inspect if channel's been changed since initialized.
 	 * i.e. DFS radar detection
 	 */
-	if (ifmsh->freq != params->freq.freq) {
+	if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) {
 		wpa_s->assoc_freq = ifmsh->freq;
 		ssid->frequency = ifmsh->freq;
 		struct he_capabilities *he_capab = NULL;
-- 
2.27.0


_______________________________________________
Hostap mailing list
Hostap@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/hostap
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic