projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560f002
)
wl12xx: indicate probe-resp offloading support
author
Arik Nemtsov
<
[email protected]
>
Tue, 8 Nov 2011 16:46:55 +0000
(18:46 +0200)
committer
Luciano Coelho
<
[email protected]
>
Thu, 1 Dec 2011 13:55:46 +0000
(15:55 +0200)
The wl12xx driver supports probe-response offloading, and the WPS, WPS2
and P2P special cases as well.
Signed-off-by: Guy Eilam <
[email protected]
>
Signed-off-by: Arik Nemtsov <
[email protected]
>
Signed-off-by: Luciano Coelho <
[email protected]
>
drivers/net/wireless/wl12xx/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/wl12xx/main.c
b/drivers/net/wireless/wl12xx/main.c
index 3750a6e479f3b9f5daa07705b813530eca9d91b9..08b06ee6d5157772fa6c710e987b96f993274575 100644
(file)
--- a/
drivers/net/wireless/wl12xx/main.c
+++ b/
drivers/net/wireless/wl12xx/main.c
@@
-5017,6
+5017,13
@@
static int wl1271_init_ieee80211(struct wl1271 *wl)
wl->hw->wiphy->reg_notifier = wl1271_reg_notify;
+ /* the FW answers probe-requests in AP-mode */
+ wl->hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;
+ wl->hw->wiphy->probe_resp_offload =
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS |
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 |
+ NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P;
+
SET_IEEE80211_DEV(wl->hw, wl->dev);
wl->hw->sta_data_size = sizeof(struct wl1271_station);