Skip to content

Commit c754394

Browse files
Ming Yen Hsiehgregkh
authored andcommitted
wifi: mt76: mt7925: fix the wrong bss cleanup for SAP
commit 55424e7 upstream. When in SAP mode, if a STA disconnect, the SAP's BSS should not be cleared. Fixes: 0ebb60d ("wifi: mt76: mt7925: adjust rm BSS flow to prevent next connection failure") Cc: stable@vger.kernel.org Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com> Link: https://patch.msgid.link/20250728052612.39751-1-mingyen.hsieh@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f495027 commit c754394

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7925

1 file changed

+3
-0
lines changed

drivers/net/wireless/mediatek/mt76/mt7925/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,9 @@ mt7925_mac_sta_remove_links(struct mt792x_dev *dev, struct ieee80211_vif *vif,
11911191
struct mt792x_bss_conf *mconf;
11921192
struct mt792x_link_sta *mlink;
11931193

1194+
if (vif->type == NL80211_IFTYPE_AP)
1195+
break;
1196+
11941197
link_sta = mt792x_sta_to_link_sta(vif, sta, link_id);
11951198
if (!link_sta)
11961199
continue;

0 commit comments

Comments
 (0)