linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath6kl: indicate probe-resp offload support
@ 2011-11-08 17:14 Arik Nemtsov
  2011-11-13 10:49 ` Kalle Valo
  2011-11-21 15:56 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Arik Nemtsov @ 2011-11-08 17:14 UTC (permalink / raw)
  To: linux-wireless; +Cc: Kalle Valo, Arik Nemtsov

The ath6kl responds to probe-requests in HW while operating as an AP. It
supports offloading exclusions to support the WPS, WPS2, P2P and
802.11u protocols.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
---
I haven't added validation in hostap that check for these flags before
sending down the probe-resp IEs. This is still useful for tools such as
iw, that can print out device characteristics.

I'm not sure 802.11u is actually supported, just seemed so from the
hostap code sending down the IEs.

The patch of course depends on
"nl80211: Add probe response offload attribute"

drivers/net/wireless/ath/ath6kl/init.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c
index b277111..075d904 100644
--- a/drivers/net/wireless/ath/ath6kl/init.c
+++ b/drivers/net/wireless/ath/ath6kl/init.c
@@ -1549,7 +1549,13 @@ static int ath6kl_init(struct net_device *dev)
 	ar->conf_flags = ATH6KL_CONF_IGNORE_ERP_BARKER |
 			 ATH6KL_CONF_ENABLE_11N | ATH6KL_CONF_ENABLE_TX_BURST;
 
-	ar->wdev->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM;
+	ar->wdev->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM |
+				  WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;
+	ar->wdev->wiphy->probe_resp_offload =
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS |
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 |
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P |
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U;
 
 	status = ath6kl_target_config_wlan_params(ar);
 	if (!status)
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ath6kl: indicate probe-resp offload support
  2011-11-08 17:14 [PATCH] ath6kl: indicate probe-resp offload support Arik Nemtsov
@ 2011-11-13 10:49 ` Kalle Valo
  2011-11-21 15:56 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2011-11-13 10:49 UTC (permalink / raw)
  To: Arik Nemtsov; +Cc: linux-wireless, Malinen, Jouni

On 11/08/2011 07:14 PM, Arik Nemtsov wrote:
> The ath6kl responds to probe-requests in HW while operating as an AP. It
> supports offloading exclusions to support the WPS, WPS2, P2P and
> 802.11u protocols.
> 
> Signed-off-by: Arik Nemtsov <arik@wizery.com>
> ---
> I haven't added validation in hostap that check for these flags before
> sending down the probe-resp IEs. This is still useful for tools such as
> iw, that can print out device characteristics.

Thanks, I'll apply this once I merge latest wireless-next to
ath6kl-next. I just can't do it right now.

> I'm not sure 802.11u is actually supported, just seemed so from the
> hostap code sending down the IEs.

Jouni, can you comment on this one?

Kalle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ath6kl: indicate probe-resp offload support
  2011-11-08 17:14 [PATCH] ath6kl: indicate probe-resp offload support Arik Nemtsov
  2011-11-13 10:49 ` Kalle Valo
@ 2011-11-21 15:56 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2011-11-21 15:56 UTC (permalink / raw)
  To: Arik Nemtsov; +Cc: linux-wireless

On 11/08/2011 07:14 PM, Arik Nemtsov wrote:
> The ath6kl responds to probe-requests in HW while operating as an AP. It
> supports offloading exclusions to support the WPS, WPS2, P2P and
> 802.11u protocols.
> 
> Signed-off-by: Arik Nemtsov <arik@wizery.com>

Thanks, applied.

Kalle

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-21 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 17:14 [PATCH] ath6kl: indicate probe-resp offload support Arik Nemtsov
2011-11-13 10:49 ` Kalle Valo
2011-11-21 15:56 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).