2011-11-08 17:14:16

by Arik Nemtsov

[permalink] [raw]
Subject: [PATCH] ath6kl: indicate probe-resp offload support

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 <[email protected]>
---
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



2011-11-13 10:49:41

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] ath6kl: indicate probe-resp offload support

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 <[email protected]>
> ---
> 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

2011-11-21 15:56:13

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] ath6kl: indicate probe-resp offload support

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 <[email protected]>

Thanks, applied.

Kalle