developer | d243af0 | 2023-12-21 14:49:33 +0800 | [diff] [blame^] | 1 | From e154e95bd733a456c5551ae89ef5673d57941b2a Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Fri, 8 Dec 2023 16:23:37 +0800 |
| 4 | Subject: [PATCH 10/23] mtk: wifi: mt76: mt7996: Let MAC80211 handles GCMP IGTK |
| 5 | |
| 6 | Because the FW does not support IGTK in GCMP mode, mt76 returns "not |
| 7 | support" to mac80211, and mac80211 will handle the integrity calculation |
| 8 | and validation. |
| 9 | |
| 10 | --- |
| 11 | mt7996/main.c | 5 ++++- |
| 12 | 1 file changed, 4 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/mt7996/main.c b/mt7996/main.c |
| 15 | index be914ced..6e88420e 100644 |
| 16 | --- a/mt7996/main.c |
| 17 | +++ b/mt7996/main.c |
| 18 | @@ -350,9 +350,12 @@ static int mt7996_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, |
| 19 | case WLAN_CIPHER_SUITE_GCMP: |
| 20 | case WLAN_CIPHER_SUITE_GCMP_256: |
| 21 | case WLAN_CIPHER_SUITE_SMS4: |
| 22 | + break; |
| 23 | case WLAN_CIPHER_SUITE_BIP_GMAC_128: |
| 24 | case WLAN_CIPHER_SUITE_BIP_GMAC_256: |
| 25 | - break; |
| 26 | + if (key->keyidx == 6 || key->keyidx == 7) |
| 27 | + break; |
| 28 | + fallthrough; |
| 29 | case WLAN_CIPHER_SUITE_WEP40: |
| 30 | case WLAN_CIPHER_SUITE_WEP104: |
| 31 | default: |
| 32 | -- |
| 33 | 2.18.0 |
| 34 | |