wifi: mt76: mt7996: let upper layer handle MGMT frame protection
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Mon, 8 Apr 2024 06:14:21 +0000 (14:14 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 2 May 2024 10:47:04 +0000 (12:47 +0200)
commit2706c5c7c9012074ce406b4783b54b3c6b309ad7
treea8cb22b80b11b732e83d0737efe67b56507db66e
parent42e85997fc2b67e69664a6b6522f286c6b5af9e7
wifi: mt76: mt7996: let upper layer handle MGMT frame protection

The firmware support for management frame protection has limitations:
- do not support cipher BIP-GMAC-128 and BIP-GMAC-256
- support cipher BIP-CMAC-128 and BIP-CMAC-256, except action frame with
  action type 'not robust'.

Therefore, to simplify the logic, do not set the IGTK to firmware and
let the encryption of management frames be handled by upper layer.

Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/main.c