diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-03-05 01:05:32 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:32 -0400 |
commit | 52933d815bff78605a490582a2212a8131482e00 (patch) | |
tree | d30f7107a771b3ef2b5d1b187fc9baa3c733b0b2 /drivers/net/wireless/libertas/assoc.c | |
parent | d9357136ac4729f589543afb6b1d17d443ae4f71 (diff) |
libertas: implement SSID scanning for SIOCSIWSCAN
After my bit scan re-writing the SIOCSIWSCAN wext ioctl no longer supported
scanning for a specific SSID. However, wpa_supplicant is a possible user of
this ioctl, so here is code that add's this.
While passing, removed even more of the debugfs-based scanning. You can (and
should) the SIOCSIWSCAN to ask for scans, so there is no need for
proprietary interfaces for scanning. And, besides, the scan result couldn't
be used further, e.g. not for associating.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 7fe37bedf313..707b7ff592ec 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -38,7 +38,7 @@ static int assoc_helper_essid(struct lbs_private *priv, | |||
38 | escape_essid(assoc_req->ssid, assoc_req->ssid_len)); | 38 | escape_essid(assoc_req->ssid, assoc_req->ssid_len)); |
39 | if (assoc_req->mode == IW_MODE_INFRA) { | 39 | if (assoc_req->mode == IW_MODE_INFRA) { |
40 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, | 40 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, |
41 | assoc_req->ssid_len, 0); | 41 | assoc_req->ssid_len); |
42 | 42 | ||
43 | bss = lbs_find_ssid_in_list(priv, assoc_req->ssid, | 43 | bss = lbs_find_ssid_in_list(priv, assoc_req->ssid, |
44 | assoc_req->ssid_len, NULL, IW_MODE_INFRA, channel); | 44 | assoc_req->ssid_len, NULL, IW_MODE_INFRA, channel); |
@@ -53,7 +53,7 @@ static int assoc_helper_essid(struct lbs_private *priv, | |||
53 | * scan data will cause us to join a non-existant adhoc network | 53 | * scan data will cause us to join a non-existant adhoc network |
54 | */ | 54 | */ |
55 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, | 55 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, |
56 | assoc_req->ssid_len, 1); | 56 | assoc_req->ssid_len); |
57 | 57 | ||
58 | /* Search for the requested SSID in the scan table */ | 58 | /* Search for the requested SSID in the scan table */ |
59 | bss = lbs_find_ssid_in_list(priv, assoc_req->ssid, | 59 | bss = lbs_find_ssid_in_list(priv, assoc_req->ssid, |