Message ID | 1428672203-8604-5-git-send-email-michal.kazior@tieto.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On 10 April 2015 at 15:23, Michal Kazior <michal.kazior@tieto.com> wrote: > From: Janusz Dziedzic <janusz.dziedzic@tieto.com> > > 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. As a matter of fact QCA6174 firmware does seem to work with IBSS as well. I just found out (by accident, after leaving a failed test setup for a while) that after approx. 300 seconds firmware discards all stuck EAPOL frames and starts sending subsequent ones properly. Keys gets exchanged, installed and traffic seems to work fine with this patchset. I suppose this warrants an updated commit log. Micha?
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 9428d75d0d76..7485d5ccee3d 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -6720,11 +6720,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;