From 06161d4f108905d10c63060c82973ad70a844247 Mon Sep 17 00:00:00 2001 From: Markus Theil Date: Tue, 30 Jun 2020 14:19:05 +0200 Subject: [PATCH] mesh: Fix mesh_oom test 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 --- 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 80de01c8e..19813aa0d 100644 --- a/wpa_supplicant/mesh.c +++ b/wpa_supplicant/mesh.c @@ -212,7 +212,7 @@ static int wpas_mesh_complete(struct wpa_supplicant *wpa_s) * Update channel configuration if the channel has changed since the * initial setting, i.e., due to DFS radar detection during CAC. */ - if (ifmsh->freq != params->freq.freq) { + if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) { struct he_capabilities *he_capab = NULL; wpa_s->assoc_freq = ifmsh->freq;