From: Jouni Malinen Date: Thu, 3 Feb 2022 22:31:20 +0000 (+0200) Subject: nl80211: Clear frequency information on leaving mesh X-Git-Tag: hostap_2_11~2253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9905f8d94ebae516acca460a218ea7fa199efa6;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 326382ccd..145f2f0d9 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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 &&