blob: 8f766d065400e1ba344bdde4f1beb07ca5a0c6b8 [file] [log] [blame]
developerdc9eeae2024-04-08 14:36:46 +08001From 93810a9bad2fd59c8e4742195a3b5c53878116ef 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
developerdc9eeae2024-04-08 14:36:46 +08004Subject: [PATCH 1052/1053] mtk: wifi: mt76: mt7915: assign DEAUTH to ALTX
5 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
developerdc9eeae2024-04-08 14:36:46 +080013index d41f004..0510296 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);
25@@ -394,6 +396,14 @@ mt76_connac2_mac_write_txwi_80211(struct mt76_dev *dev, __le32 *txwi,
26 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