|
@@ -2686,8 +2686,12 @@ static int iwl_mvm_mac_set_key(struct ieee80211_hw *hw,
|
|
* GTK on AP interface is a TX-only key, return 0;
|
|
* GTK on AP interface is a TX-only key, return 0;
|
|
* on IBSS they're per-station and because we're lazy
|
|
* on IBSS they're per-station and because we're lazy
|
|
* we don't support them for RX, so do the same.
|
|
* we don't support them for RX, so do the same.
|
|
|
|
+ * CMAC in AP/IBSS modes must be done in software.
|
|
*/
|
|
*/
|
|
- ret = 0;
|
|
|
|
|
|
+ if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC)
|
|
|
|
+ ret = -EOPNOTSUPP;
|
|
|
|
+ else
|
|
|
|
+ ret = 0;
|
|
key->hw_key_idx = STA_KEY_IDX_INVALID;
|
|
key->hw_key_idx = STA_KEY_IDX_INVALID;
|
|
break;
|
|
break;
|
|
}
|
|
}
|