ath10k: fix PMF by using AES-CMAC/IGTK software crypto
authorBartosz Markowski <bartosz.markowski@tieto.com>
Tue, 10 Mar 2015 13:32:19 +0000 (14:32 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 12 Mar 2015 12:58:05 +0000 (14:58 +0200)
commitd7131c0457d0803fa74ed5cefe2fee639403e493
tree360481f637d3edd9c8c5484319653a7768de6a87
parentcc9904e694fa3b0f49bdaccdc7603ec6afa48a7a
ath10k: fix PMF by using AES-CMAC/IGTK software crypto

While testing with older supplicant, .drv_set_key() was failing due to
higher than ath10k firmware could handle key_index (WMI_MAX_KEY_INDEX == 3).

--
wpa_driver_nl80211_set_key: ifindex=15 alg=4 addr=0x7f02b129fbe3 key_idx=4 set_tx=0 seq_len=6 key_len=16
    broadcast key
nl80211: set_key failed; err=-22 Invalid argument)
wlan0: WPA: Failed to configure IGTK to the driver
wlan0: RSN: Failed to configure IGTK
--

In order to fix this case (PMF: AES-CMAC/IGTK) force the AES_CMAC cipher to
be handled by software.

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c