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)) {