diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index f54792c4b910..e4797eb9c2ba 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -629,6 +629,12 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) else tx->key = NULL; + if (info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) { + if (tx->key && tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) + info->control.hw_key = &tx->key->conf; + return TX_CONTINUE; + } + if (tx->key) { bool skip_hw = false;