ath10k: enable ibss-rsn
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 10 Apr 2015 13:23:23 +0000 (13:23 +0000)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 17 Apr 2015 06:37:20 +0000 (09:37 +0300)
With latest additions to the driver it seems
viable to enable support for IBSS-RSN.

It seems to work on QCA988X and 999.999.0.636 but
is a bit slow to exchange RSN keys for some
reason. This may be a firmware quirk or ath10k is
missing something. Nevertheless it makes sense to
finally enable IBSS-RSN in ath10k even if somewhat
handicapped.

QCA6174 firmware doesn't seem to be able to Tx
EAPOL frames at all now (they get stuck in hw
queues for some reason) so it never gets to set
the keys in driver. It's fairly safe to assume that
once this is fixed IBSS-RSN will work with QCA6174
firmware without any additional changes. Hence no
special handling for advertising
IEEE80211_HW_SUPPORTS_PER_STA_GTK and
WIPHY_FLAG_IBSS_RSN is done now.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@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 52cf3e18929116ad5fe39efe4454b2a306358dbf..154c47bcf4f1d3ffd616ff146c628bd6bad8e1b1 100644 (file)
@@ -6682,11 +6682,13 @@ int ath10k_mac_register(struct ath10k *ar)
                        IEEE80211_HW_SPECTRUM_MGMT |
                        IEEE80211_HW_SW_CRYPTO_CONTROL |
                        IEEE80211_HW_CONNECTION_MONITOR |
+                       IEEE80211_HW_SUPPORTS_PER_STA_GTK |
                        IEEE80211_HW_WANT_MONITOR_VIF |
                        IEEE80211_HW_CHANCTX_STA_CSA |
                        IEEE80211_HW_QUEUE_CONTROL;
 
        ar->hw->wiphy->features |= NL80211_FEATURE_STATIC_SMPS;
+       ar->hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
 
        if (ar->ht_cap_info & WMI_HT_CAP_DYNAMIC_SMPS)
                ar->hw->wiphy->features |= NL80211_FEATURE_DYNAMIC_SMPS;