[PATCH] libertas: remove unused adapter->prev_XXXX variables
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 2 Aug 2007 17:04:28 +0000 (13:04 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:56 +0000 (16:49 -0700)
There were just used in some debug output, but nowhere else.

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

index bf672f51f16310f29f53fddd186fcf79c0576657..8e99c2de1835bb896211ef94bdc25b91267f4680 100644 (file)
@@ -65,18 +65,9 @@ void libertas_mac_event_disconnected(wlan_private * priv)
                    escape_essid(adapter->curbssparams.ssid,
                                 adapter->curbssparams.ssid_len),
                    adapter->curbssparams.ssid_len);
-       lbs_deb_cmd("previous SSID '%s', length %u\n",
-                   escape_essid(adapter->prev_ssid, adapter->prev_ssid_len),
-                   adapter->prev_ssid_len);
 
        adapter->connect_status = LIBERTAS_DISCONNECTED;
 
-       /* Save previous SSID and BSSID for possible reassociation */
-       memcpy(&adapter->prev_ssid, &adapter->curbssparams.ssid,
-              IW_ESSID_MAX_SIZE);
-       adapter->prev_ssid_len = adapter->curbssparams.ssid_len;
-       memcpy(adapter->prev_bssid, adapter->curbssparams.bssid, ETH_ALEN);
-
        /* Clear out associated SSID and BSSID since connection is
         * no longer valid.
         */
index 7c565cbf8cc4eeaf18a67fd070604381ff5dc27e..7c0ee0f9184c023aeccffd2ccb1738e2bb31e7e6 100644 (file)
@@ -257,10 +257,6 @@ struct _wlan_adapter {
        /* IW_MODE_* */
        u8 mode;
 
-       u8 prev_ssid[IW_ESSID_MAX_SIZE + 1];
-       u8 prev_ssid_len;
-       u8 prev_bssid[ETH_ALEN];
-
        /* Scan results list */
        struct list_head network_list;
        struct list_head network_free_list;