]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: refactor CMAC packet handlers
authorChien Wong <m@xv97.com>
Thu, 13 Nov 2025 14:05:11 +0000 (22:05 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 20 Nov 2025 10:56:19 +0000 (11:56 +0100)
commitb688a9447be360d09c0982234fcd703ac7dd8c15
tree89f5cf9f45a89877ded8228c544091261e0b9555
parenta22fb19244cb2425b075106541bd5b3eee42730c
wifi: mac80211: refactor CMAC packet handlers

Merge CMAC-128 and CMAC-256 handlers since they are almost the same.
This removes duplication.

The comment 'MIC = AES-128-CMAC(IGTK, AAD ...' is out-dated since CMAC
is also used with BIGTK, as is the comment for CMAC-256. Simply remove
the comments.

Tested-on: mac80211_hwsim

Signed-off-by: Chien Wong <m@xv97.com>
Link: https://patch.msgid.link/20251113140511.48658-6-m@xv97.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c
net/mac80211/tx.c
net/mac80211/wpa.c
net/mac80211/wpa.h