summaryrefslogtreecommitdiffstats
path: root/net/wireless/wext-compat.c
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2009-06-18 23:21:15 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:01:42 -0400
commit51cd4aabd082144881644c308647ca501690b68c (patch)
treeb9db3a760de882bacf46001fe19eeba2c098403c /net/wireless/wext-compat.c
parent3daf097594d398b2ddd2dca6caeaa92cb9148e23 (diff)
downloadop-kernel-dev-51cd4aabd082144881644c308647ca501690b68c.zip
op-kernel-dev-51cd4aabd082144881644c308647ca501690b68c.tar.gz
cfg80211: allow drivers that can't scan for specific ssids
Signed-off-by: David Kilroy <kilroyd@googlemail.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/wext-compat.c')
-rw-r--r--net/wireless/wext-compat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c
index 7dbe6c6..bb97061 100644
--- a/net/wireless/wext-compat.c
+++ b/net/wireless/wext-compat.c
@@ -247,7 +247,8 @@ int cfg80211_wext_giwrange(struct net_device *dev,
IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWAP);
IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWSCAN);
- range->scan_capa |= IW_SCAN_CAPA_ESSID;
+ if (wdev->wiphy->max_scan_ssids > 0)
+ range->scan_capa |= IW_SCAN_CAPA_ESSID;
return 0;
}
OpenPOWER on IntegriCloud