|
@@ -547,9 +547,10 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx)
|
|
|
!ieee80211_use_mfp(hdr->frame_control, tx->sta,
|
|
|
tx->skb))
|
|
|
tx->key = NULL;
|
|
|
- skip_hw = (tx->key->conf.flags &
|
|
|
- IEEE80211_KEY_FLAG_SW_MGMT) &&
|
|
|
- ieee80211_is_mgmt(hdr->frame_control);
|
|
|
+ else
|
|
|
+ skip_hw = (tx->key->conf.flags &
|
|
|
+ IEEE80211_KEY_FLAG_SW_MGMT) &&
|
|
|
+ ieee80211_is_mgmt(hdr->frame_control);
|
|
|
break;
|
|
|
case ALG_AES_CMAC:
|
|
|
if (!ieee80211_is_mgmt(hdr->frame_control))
|