提交 4d4ce1ad 编写于 作者: H Holger Schurig 提交者: David S. Miller

[PATCH] libertas: remove unused adapter->prev_XXXX variables

There were just used in some debug output, but nowhere else.
Signed-off-by: NHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 27590d06
......@@ -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.
*/
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册