From: Chenming Huang Date: Wed, 27 Mar 2024 02:56:05 +0000 (+0530) Subject: AP MLD: Fix missing check for legacy client case X-Git-Tag: hostap_2_11~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=216cfd708d978e2fe3bc2f03a63e5dc010b0d2e9;p=thirdparty%2Fhostap.git AP MLD: Fix missing check for legacy client case The AP MLD case missed the "else" branch which handles legacy STA's disassociation. So this STA's sta_info will not be cleared ever. Add the "else" check to make sure the sta_info gets cleared. Fixes: 7ceafb6e9fd3 ("AP MLD: Handle disassociation notification with SME offload to driver") Signed-off-by: Chenming Huang --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index 9ca720548..2affda5eb 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -1006,6 +1006,8 @@ void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) break; } } + } else if (!sta->mld_info.mld_sta) { + goto legacy; } if (!sta) { wpa_printf(MSG_DEBUG,