diff mbox

[RFC] ath10k: IBSS allow to use RSN

Message ID 1426876523-5337-1-git-send-email-janusz.dziedzic@tieto.com (mailing list archive)
State RFC
Headers show

Commit Message

Janusz.Dziedzic@tieto.com March 20, 2015, 6:35 p.m. UTC
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>

---
 drivers/net/wireless/ath/ath10k/mac.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ben Greear March 31, 2015, 10:40 p.m. UTC | #1
I tried this on my CT firmware, hacked into a 4.0 kernel,
but it does not work for me.

(I tried configuring WPA2 IBSS interfaces, but they cannot pass traffic).

Could still be something on my side though..I never managed to get
ath9k to do IBSS + WPA2 either, though haven't tried that again lately.

Thanks,
Ben


On 03/20/2015 11:35 AM, Janusz Dziedzic wrote:
> Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
> 
> ---
>  drivers/net/wireless/ath/ath10k/mac.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
> index 39c60f5..ebecfe9 100644
> --- a/drivers/net/wireless/ath/ath10k/mac.c
> +++ b/drivers/net/wireless/ath/ath10k/mac.c
> @@ -6541,11 +6541,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;
>
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 39c60f5..ebecfe9 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -6541,11 +6541,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;