aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/assoc.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-25 16:25:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:41 -0400
commiteb8f7330e7edf655176c51a62cd2e34de91a1eba (patch)
tree383f19fd3741a2f240c976ee7dc89368581ac1f0 /drivers/net/wireless/libertas/assoc.c
parentfcdb53dbc743f288bf72e485fefb3a967b733686 (diff)
[PATCH] libertas: fix 'keep previous scan' behavior
Do not clear the scan list except under specific conditions, such as when (a) user-requested, or (b) joining/starting an adhoc network. Furthermore, only clear entries which match the SSID or BSSID of the request, not the whole scan list. Signed-off-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c
index 4605bd3a26ba..4bc128fa5848 100644
--- a/drivers/net/wireless/libertas/assoc.c
+++ b/drivers/net/wireless/libertas/assoc.c
@@ -25,7 +25,7 @@ static int assoc_helper_essid(wlan_private *priv,
25 lbs_deb_assoc("New SSID requested: %s\n", assoc_req->ssid.ssid); 25 lbs_deb_assoc("New SSID requested: %s\n", assoc_req->ssid.ssid);
26 if (assoc_req->mode == IW_MODE_INFRA) { 26 if (assoc_req->mode == IW_MODE_INFRA) {
27 if (adapter->prescan) { 27 if (adapter->prescan) {
28 libertas_send_specific_SSID_scan(priv, &assoc_req->ssid, 1); 28 libertas_send_specific_SSID_scan(priv, &assoc_req->ssid, 0);
29 } 29 }
30 30
31 bss = libertas_find_SSID_in_list(adapter, &assoc_req->ssid, 31 bss = libertas_find_SSID_in_list(adapter, &assoc_req->ssid,
@@ -44,7 +44,7 @@ static int assoc_helper_essid(wlan_private *priv,
44 /* Scan for the network, do not save previous results. Stale 44 /* Scan for the network, do not save previous results. Stale
45 * scan data will cause us to join a non-existant adhoc network 45 * scan data will cause us to join a non-existant adhoc network
46 */ 46 */
47 libertas_send_specific_SSID_scan(priv, &assoc_req->ssid, 0); 47 libertas_send_specific_SSID_scan(priv, &assoc_req->ssid, 1);
48 48
49 /* Search for the requested SSID in the scan table */ 49 /* Search for the requested SSID in the scan table */
50 bss = libertas_find_SSID_in_list(adapter, &assoc_req->ssid, NULL, 50 bss = libertas_find_SSID_in_list(adapter, &assoc_req->ssid, NULL,