mirror of https://gitee.com/openkylin/linux.git
iwlwifi: mvm: set the encryption type of an IGTK key
The FW expect the driver to set the encryption algorithm type when installing the IGTK key in the HW. Currently when installing CMAC IGTK key we don't set the algorithm type and as a result the FW fails to calculate the MIC of multicast management frames. Fix it. Signed-off-by: Ayala Beker <ayala.beker@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
1f9788f335
commit
aa950524d5
|
@ -1961,6 +1961,14 @@ static int iwl_mvm_send_sta_igtk(struct iwl_mvm *mvm,
|
|||
struct ieee80211_key_seq seq;
|
||||
const u8 *pn;
|
||||
|
||||
switch (keyconf->cipher) {
|
||||
case WLAN_CIPHER_SUITE_AES_CMAC:
|
||||
igtk_cmd.ctrl_flags |= cpu_to_le32(STA_KEY_FLG_CCM);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
memcpy(igtk_cmd.IGTK, keyconf->key, keyconf->keylen);
|
||||
ieee80211_get_key_rx_seq(keyconf, 0, &seq);
|
||||
pn = seq.aes_cmac.pn;
|
||||
|
|
Loading…
Reference in New Issue