mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix TKIP key setup
Rx and Tx MIC keys are swapped compared to the order provided by mac80211 Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -770,6 +770,9 @@ mt7603_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data)
|
||||
case WLAN_CIPHER_SUITE_WEP104:
|
||||
return MT_CIPHER_WEP104;
|
||||
case WLAN_CIPHER_SUITE_TKIP:
|
||||
/* Rx/Tx MIC keys are swapped */
|
||||
memcpy(key_data + 16, key->key + 24, 8);
|
||||
memcpy(key_data + 24, key->key + 16, 8);
|
||||
return MT_CIPHER_TKIP;
|
||||
case WLAN_CIPHER_SUITE_CCMP:
|
||||
return MT_CIPHER_AES_CCMP;
|
||||
|
||||
Reference in New Issue
Block a user