]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211: Check 802.11 encaps offloading in ieee80211_tx_h_select_key()
authorRemi Pommarel <repk@triplefau.lt>
Thu, 17 Jul 2025 15:45:28 +0000 (17:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jul 2025 12:29:20 +0000 (14:29 +0200)
commit4037c468d1b3c508d69e6df0ef47fdee3d440e39
tree8e50c8ef33e5e5b247e7c026387c8945217201a5
parentcb3bb3d88dfcd177a1050c0a009a3ee147b2e5b9
wifi: mac80211: Check 802.11 encaps offloading in ieee80211_tx_h_select_key()

With 802.11 encapsulation offloading, ieee80211_tx_h_select_key() is
called on 802.3 frames. In that case do not try to use skb data as
valid 802.11 headers.

Reported-by: Bert Karwatzki <spasswolf@web.de>
Closes: https://lore.kernel.org/linux-wireless/20250410215527.3001-1-spasswolf@web.de
Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Link: https://patch.msgid.link/1af4b5b903a5fca5ebe67333d5854f93b2be5abe.1752765971.git.repk@triplefau.lt
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c