From f9905f8d94ebae516acca460a218ea7fa199efa6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 4 Feb 2022 00:31:20 +0200 Subject: [PATCH] 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 --- src/drivers/driver_nl80211.c | 1 + 1 file changed, 1 insertion(+) 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 && -- 2.47.3