]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211, cfg80211: Export michael_mic() and move it to cfg80211
authorEric Biggers <ebiggers@kernel.org>
Wed, 8 Apr 2026 03:06:47 +0000 (20:06 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 8 Apr 2026 06:55:15 +0000 (08:55 +0200)
commit613c83766884503f0f6bfdc45964c84b5286091c
treea612b482d484953640eff73f8b954ef0483d818d
parentea06baf59bd4b83c2cb13698411909e5e6be001e
wifi: mac80211, cfg80211: Export michael_mic() and move it to cfg80211

Export michael_mic() so that the ath11k and ath12k drivers can call it.
In addition, move it from mac80211 to cfg80211 so that the ipw2x00
drivers, which depend on cfg80211 but not mac80211, can also call it.

Currently these drivers have their own local implementations of
michael_mic() based on crypto_shash, which is redundant and inefficient.
By consolidating all the Michael MIC code into cfg80211, we'll be able
to remove the duplicate Michael MIC code in the crypto/ directory.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Link: https://patch.msgid.link/20260408030651.80336-3-ebiggers@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
net/mac80211/Makefile
net/mac80211/michael.h [deleted file]
net/mac80211/wpa.c
net/wireless/Makefile
net/wireless/michael-mic.c [moved from net/mac80211/michael.c with 96% similarity]