]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] libertas: remove adapter->prescan
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 2 Aug 2007 17:05:32 +0000 (13:05 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:58 +0000 (16:49 -0700)
The value 1 was assigned to it and there was nowhere any code
that would have changed that to 0.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/assoc.c
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/main.c

index 5fdc96f289b83cfab6ee45d453ff62403f917cf8..ffeec2fa60ae32b51a0ea10704610e0a8f6df278 100644 (file)
@@ -57,10 +57,8 @@ static int assoc_helper_essid(wlan_private *priv,
        lbs_deb_assoc("New SSID requested: '%s'\n",
                      escape_essid(assoc_req->ssid, assoc_req->ssid_len));
        if (assoc_req->mode == IW_MODE_INFRA) {
-               if (adapter->prescan) {
-                       libertas_send_specific_ssid_scan(priv, assoc_req->ssid,
-                               assoc_req->ssid_len, 0);
-               }
+               libertas_send_specific_ssid_scan(priv, assoc_req->ssid,
+                       assoc_req->ssid_len, 0);
 
                bss = libertas_find_ssid_in_list(adapter, assoc_req->ssid,
                                assoc_req->ssid_len, NULL, IW_MODE_INFRA, channel);
index 765c0c4f641a5d36f5741da6a65ed6188e48c041..83876a3c41ce22bba08945b757b7eb3f8d453bd3 100644 (file)
@@ -288,7 +288,6 @@ struct _wlan_adapter {
        u32 rtsthsd;
 
        u16 listeninterval;
-       u16 prescan;
        u8 txretrycount;
 
        /** Tx-related variables (for single packet tx) */
index 5b4a1343559ba8240798747b0f1652a8a6aeb37d..e354ebbca4b0a4afb12b5271cd04bb0d337d021c 100644 (file)
@@ -1037,8 +1037,6 @@ static void wlan_init_adapter(wlan_private * priv)
 
        mutex_init(&adapter->lock);
 
-       adapter->prescan = 1;
-
        memset(&adapter->curbssparams, 0, sizeof(adapter->curbssparams));
        adapter->curbssparams.channel = DEFAULT_AD_HOC_CHANNEL;