]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Fix mesh_oom test
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Tue, 30 Jun 2020 12:19:05 +0000 (14:19 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Nov 2020 22:22:59 +0000 (00:22 +0200)
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

index 80de01c8e71b0172883e9ae2f9402f92238058b5..19813aa0df549b71b64c861e2f060581676480e3 100644 (file)
@@ -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;