diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index a94a5859fbdc..c6a4a30d95cc 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -607,6 +607,9 @@ ieee80211_select_key_8023(struct ieee80211_tx_data *tx) tx->key = rcu_dereference(tx->sta->ptk[tx->sta->ptk_idx]); if (!tx->key) tx->key = rcu_dereference(tx->sdata->default_unicast_key); + + if (!tx->key && test_sta_flag(tx->sta, WLAN_STA_USES_ENCRYPTION)) + return TX_DROP; } else if (!ieee80211_vif_is_mld(&tx->sdata->vif)) { tx->key = rcu_dereference(tx->sdata->deflink.default_multicast_key); }