nl80211: Clear frequency information on leaving mesh

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>
This commit is contained in:
Jouni Malinen 2022-02-04 00:31:20 +02:00 committed by Jouni Malinen
parent 1f26a0a34c
commit f9905f8d94

View 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 &&