diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-08-02 13:04:28 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:56 -0400 |
commit | 4d4ce1ad02f02e593086fabdad69953ecbd99d9c (patch) | |
tree | 5078fd95311f19035152544bb0256d2eaf540d48 | |
parent | 27590d06e136167101c8c6347e7c2885c7f014b9 (diff) |
[PATCH] libertas: remove unused adapter->prev_XXXX variables
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>
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 4 |
2 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index bf672f51f163..8e99c2de1835 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -65,18 +65,9 @@ void libertas_mac_event_disconnected(wlan_private * priv) | |||
65 | escape_essid(adapter->curbssparams.ssid, | 65 | escape_essid(adapter->curbssparams.ssid, |
66 | adapter->curbssparams.ssid_len), | 66 | adapter->curbssparams.ssid_len), |
67 | adapter->curbssparams.ssid_len); | 67 | adapter->curbssparams.ssid_len); |
68 | lbs_deb_cmd("previous SSID '%s', length %u\n", | ||
69 | escape_essid(adapter->prev_ssid, adapter->prev_ssid_len), | ||
70 | adapter->prev_ssid_len); | ||
71 | 68 | ||
72 | adapter->connect_status = LIBERTAS_DISCONNECTED; | 69 | adapter->connect_status = LIBERTAS_DISCONNECTED; |
73 | 70 | ||
74 | /* Save previous SSID and BSSID for possible reassociation */ | ||
75 | memcpy(&adapter->prev_ssid, &adapter->curbssparams.ssid, | ||
76 | IW_ESSID_MAX_SIZE); | ||
77 | adapter->prev_ssid_len = adapter->curbssparams.ssid_len; | ||
78 | memcpy(adapter->prev_bssid, adapter->curbssparams.bssid, ETH_ALEN); | ||
79 | |||
80 | /* Clear out associated SSID and BSSID since connection is | 71 | /* Clear out associated SSID and BSSID since connection is |
81 | * no longer valid. | 72 | * no longer valid. |
82 | */ | 73 | */ |
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 7c565cbf8cc4..7c0ee0f9184c 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -257,10 +257,6 @@ struct _wlan_adapter { | |||
257 | /* IW_MODE_* */ | 257 | /* IW_MODE_* */ |
258 | u8 mode; | 258 | u8 mode; |
259 | 259 | ||
260 | u8 prev_ssid[IW_ESSID_MAX_SIZE + 1]; | ||
261 | u8 prev_ssid_len; | ||
262 | u8 prev_bssid[ETH_ALEN]; | ||
263 | |||
264 | /* Scan results list */ | 260 | /* Scan results list */ |
265 | struct list_head network_list; | 261 | struct list_head network_list; |
266 | struct list_head network_free_list; | 262 | struct list_head network_free_list; |