Since commit dedf2ec30fe4 ("wifi: mt76: fix queue assignment for deauth packets"), the Deauthentication that an associated MLD station sends when it leaves goes out on the ALTX queue of its default link, without the MLD address translation. With single-radio MLO, the firmware holds the links that the radio does not serve in power save, and it drops an ALTX frame for such a link. The AP then keeps the station. Send the Deauthentication of an associated MLD station on its AC queue with the address translation, like its Action frames. A Deauthentication that ends an authentication or an association stays on ALTX, since it goes out under the join ROC of mt7925_mgd_prepare_tx(). Fixes: dedf2ec30fe4 ("wifi: mt76: fix queue assignment for deauth packets") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mac.c b/drivers/net/wireless/mediatek/mt76/mt7925/mac.c index b3fdb63088e3..8e6ca09d7235 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7925/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7925/mac.c @@ -765,6 +765,16 @@ mt7925_mac_write_txwi_80211(struct mt76_dev *dev, __le32 *txwi, } } +static bool +mt7925_mac_deauth_on_ac(struct ieee80211_vif *vif, struct sk_buff *skb) +{ + struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; + + return vif && vif->type == NL80211_IFTYPE_STATION && + ieee80211_vif_is_mld(vif) && vif->cfg.assoc && + ieee80211_is_deauth(hdr->frame_control); +} + void mt7925_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi, struct sk_buff *skb, struct mt76_wcid *wcid, @@ -799,7 +809,7 @@ mt7925_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi, } else if (beacon) { p_fmt = MT_TX_TYPE_FW; q_idx = MT_LMAC_BCN0; - } else if (qid >= MT_TXQ_PSD) { + } else if (qid >= MT_TXQ_PSD && !mt7925_mac_deauth_on_ac(vif, skb)) { p_fmt = mt76_is_mmio(dev) ? MT_TX_TYPE_CT : MT_TX_TYPE_SF; q_idx = MT_LMAC_ALTX0; } else { -- 2.47.3