summaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_ioctl.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-12-12 16:25:07 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-28 23:58:25 +0100
commit374fdfbc67837c1f4369eedb0f371ce3e6cce832 (patch)
tree2bfa7f0294d83c19c23d680f74b3322e0e8200dc /net/mac80211/ieee80211_ioctl.c
parentmac80211: conditionally include timestamp in radiotap information (diff)
downloadlinux-374fdfbc67837c1f4369eedb0f371ce3e6cce832.tar.xz
linux-374fdfbc67837c1f4369eedb0f371ce3e6cce832.zip
introduce WEXT scan capabilities
Introduce scan capabilities to WEXT so that userspace can do intelligent things with scan behavior such as handling hidden SSIDs more gracefully. If the driver reports a specific scan capability, the driver must respect the options specified in the iw_scan_req structure when handling the SIOCSIWSCAN call, unless it's mode or state does not allow it to do so, in which case it must return an error. This version switches to Dave Kilroy's suggestion of claiming unused padding space for the scan_capa field. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/mac80211/ieee80211_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index 161f3bdec41b..04ddce76135b 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -218,6 +218,8 @@ static int ieee80211_ioctl_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;
+
return 0;
}