|
@@ -2265,6 +2265,23 @@ int ath9k_hw_reset(struct ath_hal *ah, struct ath9k_channel *chan,
|
|
|
if (r)
|
|
|
return r;
|
|
|
|
|
|
+ /* Setup MFP options for CCMP */
|
|
|
+ if (AR_SREV_9280_20_OR_LATER(ah)) {
|
|
|
+ /* Mask Retry(b11), PwrMgt(b12), MoreData(b13) to 0 in mgmt
|
|
|
+ * frames when constructing CCMP AAD. */
|
|
|
+ REG_RMW_FIELD(ah, AR_AES_MUTE_MASK1, AR_AES_MUTE_MASK1_FC_MGMT,
|
|
|
+ 0xc7ff);
|
|
|
+ ah->sw_mgmt_crypto = false;
|
|
|
+ } else if (AR_SREV_9160_10_OR_LATER(ah)) {
|
|
|
+ /* Disable hardware crypto for management frames */
|
|
|
+ REG_CLR_BIT(ah, AR_PCU_MISC_MODE2,
|
|
|
+ AR_PCU_MISC_MODE2_MGMT_CRYPTO_ENABLE);
|
|
|
+ REG_SET_BIT(ah, AR_PCU_MISC_MODE2,
|
|
|
+ AR_PCU_MISC_MODE2_NO_CRYPTO_FOR_NON_DATA_PKT);
|
|
|
+ ah->sw_mgmt_crypto = true;
|
|
|
+ } else
|
|
|
+ ah->sw_mgmt_crypto = true;
|
|
|
+
|
|
|
if (IS_CHAN_OFDM(chan) || IS_CHAN_HT(chan))
|
|
|
ath9k_hw_set_delta_slope(ah, chan);
|
|
|
|