summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Karwatzki <spasswolf@web.de>2026-09-08 11:43:40 +0200
committerJohannes Berg <johannes.berg@intel.com>2026-09-08 14:30:13 +0200
commit5f2530a4df8e0573e54cc0f4175c06ecb810a4dd (patch)
tree7816cf71bad881a68a3a7de1f64be399b4478fc5
parent1b60ed34f712e9f606d80951f1586f4274ebadf1 (diff)
downloadlinux-next-5f2530a4df8e0573e54cc0f4175c06ecb810a4dd.tar.gz
linux-next-5f2530a4df8e0573e54cc0f4175c06ecb810a4dd.zip
mac80211: tx: Use info->flags in ieee80211_tx_h_select_key()
Without this ieee80211_select_key_8023() is never called and wifi never connects. Fixes: 0e80db08668b ("wifi: mac80211: fix key selection for encap offload frames") Signed-off-by: Bert Karwatzki <spasswolf@web.de> Link: https://patch.msgid.link/20260908094341.12196-1-spasswolf@web.de Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index c33092960df2..fd7981466137 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -633,7 +633,7 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx)
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb);
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
- if (info->control.flags & IEEE80211_TX_CTL_HW_80211_ENCAP)
+ if (info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP)
return ieee80211_select_key_8023(tx);
if (unlikely(info->flags & IEEE80211_TX_INTFL_DONT_ENCRYPT)) {