]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Fix missing check for legacy client case
authorChenming Huang <quic_chenhuan@quicinc.com>
Wed, 27 Mar 2024 02:56:05 +0000 (08:26 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2024 08:38:42 +0000 (11:38 +0300)
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 <quic_chenhuan@quicinc.com>
src/ap/drv_callbacks.c

index 9ca720548214b0a92b871fa7a7b40d955c617c4c..2affda5eb4c406956d84840abef26495b791655d 100644 (file)
@@ -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,