ath10k: remove sw encryption for pmf
authorMarek Kwaczynski <marek.kwaczynski@tieto.com>
Sat, 24 Jan 2015 10:14:53 +0000 (12:14 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Jan 2015 14:25:14 +0000 (16:25 +0200)
Software encryption was never necessary.
Tested with fw 636 and fw 10.x.

Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c

index e3a3bbd41966e20b1429d9b6d767542bdef2f389..02e2bfc04ccfd37cc24c94c1b9ab8e167cc9b27d 100644 (file)
@@ -58,10 +58,7 @@ static int ath10k_send_key(struct ath10k_vif *arvif,
        switch (key->cipher) {
        case WLAN_CIPHER_SUITE_CCMP:
                arg.key_cipher = WMI_CIPHER_AES_CCM;
-               if (arvif->vdev_type == WMI_VDEV_TYPE_AP)
-                       key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT;
-               else
-                       key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX;
+               key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT;
                break;
        case WLAN_CIPHER_SUITE_TKIP:
                arg.key_cipher = WMI_CIPHER_TKIP;