Skip to contentSkip to conversation

wl12xx: configure the probe response offloading support

PATCH New Guy Eilam 1 participant 1 message Oct 22, 2011 Networking drivers (wireless)

lore
Share & tools
lore

Guy Eilam

author
#0 lore raw

PATCH v2 1/2 wl12xx: configure the probe response offloading support

Configure the probe response offload wiphy struct with the relevant protocols supported currently by the driver.

---
v2:
now using the wiphy struct instead of a function and the conf_drv_settings

 drivers/net/wireless/wl12xx/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/net/wireless/wl12xx/main.c +6 -0
index f76be5a..833f3e7 100644
@@ -4965,6 +4965,12 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
 
 	wl->hw->wiphy->reg_notifier = wl1271_reg_notify;
 
+	wl->hw->wiphy->flags |= WIPHY_FLAG_SUPPORT_PROBE_RESP_OFFLOAD;
+	wl->hw->wiphy->probe_resp_offload =
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WSC |
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WSC2 |
+		NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P;
+
 	SET_IEEE80211_DEV(wl->hw, wl->dev);
 
 	wl->hw->sta_data_size = sizeof(struct wl1271_station);
Signature · 1 line
1.7.4.1