On Tue, Jul 01, 2025 at 03:26:43PM +0100, Vitor Soares wrote: > From: Vitor Soares <vitor.soares@xxxxxxxxxxx> > > When operating in concurrent STA/AP mode with host MLME enabled, > the firmware incorrectly sends disassociation frames to the STA > interface when clients disconnect from the AP interface. ... > Add validation in the STA receive path to verify that disassoc/deauth > frames originate from the connected AP. Frames that fail this check > are discarded early, preventing them from reaching the MLME layer and > triggering WARN_ON(). > > This filtering logic is similar with that used in the > ieee80211_rx_mgmt_disassoc() function in mac80211, which drops > disassoc frames that don't match the current BSSID > (!ether_addr_equal(mgmt->bssid, sdata->vif.cfg.ap_addr)), ensuring > only relevant frames are processed. > > Tested on: > - 8997 with FW 16.68.1.p197 > > Fixes: 36995892c271 ("wifi: mwifiex: add host mlme for client mode") > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Vitor Soares <vitor.soares@xxxxxxxxxxx> Reviewed-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>