|
@@ -552,6 +552,9 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx)
|
|
!(ieee80211_is_action(hdr->frame_control) &&
|
|
!(ieee80211_is_action(hdr->frame_control) &&
|
|
tx->sta && test_sta_flag(tx->sta, WLAN_STA_MFP)))
|
|
tx->sta && test_sta_flag(tx->sta, WLAN_STA_MFP)))
|
|
tx->key = NULL;
|
|
tx->key = NULL;
|
|
|
|
+ else if (ieee80211_is_mgmt(hdr->frame_control) &&
|
|
|
|
+ !ieee80211_is_robust_mgmt_frame(hdr))
|
|
|
|
+ tx->key = NULL;
|
|
else {
|
|
else {
|
|
I802_DEBUG_INC(tx->local->tx_handlers_drop_unencrypted);
|
|
I802_DEBUG_INC(tx->local->tx_handlers_drop_unencrypted);
|
|
return TX_DROP;
|
|
return TX_DROP;
|