developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 2ed70c162a13b4b4af3bfc7a806e8cfab29126f7 Mon Sep 17 00:00:00 2001 |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Tue, 19 Mar 2024 08:35:26 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 1050/1052] mtk: wifi: mt76: mt7915: assign DEAUTH to ALTX |
developer | dc9eeae | 2024-04-08 14:36:46 +0800 | [diff] [blame] | 5 | queue for CERT |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 6 | |
| 7 | Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 8 | --- |
| 9 | mt76_connac_mac.c | 10 ++++++++++ |
| 10 | 1 file changed, 10 insertions(+) |
| 11 | |
| 12 | diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 13 | index d1708152..21dadb55 100644 |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 14 | --- 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); |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 25 | @@ -395,6 +397,14 @@ mt76_connac2_mac_write_txwi_80211(struct mt76_dev *dev, __le32 *txwi, |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 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 | -- |
developer | dc9eeae | 2024-04-08 14:36:46 +0800 | [diff] [blame] | 41 | 2.18.0 |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 42 | |