[PATCH 06/11] nl80211: check if sched_scan is supported in wiphy info
Luciano Coelho
coelho
Tue Sep 27 12:21:34 PDT 2011
Tell wpa_supplicant whether sched_scan is supported by the driver by
looking into the wiphy info data.
Signed-off-by: Luciano Coelho <coelho at ti.com>
---
src/drivers/driver_nl80211.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 1a4bf1f..d6df922 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1701,6 +1701,7 @@ struct wiphy_info_data {
int offchan_tx_supported;
int max_remain_on_chan;
int firmware_roam;
+ int sched_scan_supported;
};
@@ -1822,6 +1823,8 @@ broken_combination:
info->auth_supported = 1;
else if (cmd == NL80211_CMD_CONNECT)
info->connect_supported = 1;
+ else if (cmd == NL80211_CMD_START_SCHED_SCAN)
+ info->sched_scan_supported = 1;
}
}
@@ -1888,6 +1891,8 @@ static int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
drv->capa.max_scan_ssids = info.max_scan_ssids;
drv->capa.max_sched_scan_ssids = info.max_sched_scan_ssids;
+ drv->capa.sched_scan_supported = info.sched_scan_supported;
+
if (info.ap_supported)
drv->capa.flags |= WPA_DRIVER_FLAGS_AP;
--
1.7.1
More information about the Hostap
mailing list