blob: 2c5f48407ff69b1f6e40fb781e4630dbba784d6a [file] [log] [blame]
developera20cdc22024-05-31 18:57:31 +08001From 236bc42c90160e3526d8901f3d983ebc76316ee2 Mon Sep 17 00:00:00 2001
developera46f6132024-03-26 14:09:54 +08002From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Tue, 19 Mar 2024 08:35:26 +0800
developera20cdc22024-05-31 18:57:31 +08004Subject: [PATCH 1050/1051] mtk: wifi: mt76: mt7915: assign DEAUTH to ALTX
developerdc9eeae2024-04-08 14:36:46 +08005 queue for CERT
developera46f6132024-03-26 14:09:54 +08006
7Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
8---
9 mt76_connac_mac.c | 10 ++++++++++
10 1 file changed, 10 insertions(+)
11
12diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c
developera20cdc22024-05-31 18:57:31 +080013index d170815..21dadb5 100644
developera46f6132024-03-26 14:09:54 +080014--- a/mt76_connac_mac.c
15+++ b/mt76_connac_mac.c
16@@ -385,6 +385,8 @@ mt76_connac2_mac_write_txwi_80211(struct mt76_dev *dev, __le32 *txwi,
17 struct sk_buff *skb,
18 struct ieee80211_key_conf *key)
19 {
20+ struct mt76_phy *mphy =
21+ mt76_dev_phy(dev, le32_get_bits(txwi[1], MT_TXD1_TGID));
22 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
23 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data;
24 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
developera20cdc22024-05-31 18:57:31 +080025@@ -395,6 +397,14 @@ mt76_connac2_mac_write_txwi_80211(struct mt76_dev *dev, __le32 *txwi,
developera46f6132024-03-26 14:09:54 +080026 u8 fc_type, fc_stype;
27 u32 val;
28
29+ if (ieee80211_is_cert_mode(mphy->hw) && ieee80211_is_deauth(fc)) {
30+ /* In WPA3 cert TC-4.8.1, the deauth must be transmitted without
31+ * considering PSM bit
32+ */
33+ txwi[0] &= ~cpu_to_le32(MT_TXD0_Q_IDX);
34+ txwi[0] |= cpu_to_le32(FIELD_PREP(MT_TXD0_Q_IDX, MT_LMAC_ALTX0));
35+ }
36+
37 if (ieee80211_is_action(fc) &&
38 mgmt->u.action.category == WLAN_CATEGORY_BACK &&
39 mgmt->u.action.u.addba_req.action_code == WLAN_ACTION_ADDBA_REQ) {
40--
developerdc9eeae2024-04-08 14:36:46 +0800412.18.0
developera46f6132024-03-26 14:09:54 +080042