]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Clear frequency information on leaving mesh
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 3 Feb 2022 22:31:20 +0000 (00:31 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Feb 2022 10:15:41 +0000 (12:15 +0200)
Not doing this was resulting in test failures with many sequences of a
mesh test case (e.g., wpas_mesh_peer_connected) followed by
ap_csa_1_switch which was checking the driver wrapper frequency
information at the beginning.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/drivers/driver_nl80211.c

index 326382ccd287ec682fd288b59f969183b29540db..145f2f0d9c5c4bc79e0a1ebe5007c617c8451c4f 100644 (file)
@@ -10626,6 +10626,7 @@ static int wpa_driver_nl80211_leave_mesh(void *priv)
        } else {
                wpa_printf(MSG_DEBUG,
                           "nl80211: mesh leave request send successfully");
+               drv->first_bss->freq = 0;
        }
 
        if (drv->start_mode_sta &&