aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-08-02 13:10:59 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:05 -0400
commit0aabc0a5d5657df254255c9049a97cc96229bcba (patch)
tree8015e46338c431168fa7da33394041f52ad445f8
parent956deb867a97ac137c164a5d2d12b0c82fb6776d (diff)
[PATCH] libertas: remove adapter->listeninterval
listeninterval was initialized with MRVDRV_DEFAULT_LISTEN_INTERVAL, but there exists that would ever change it. So we can use this define directly. 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/dev.h1
-rw-r--r--drivers/net/wireless/libertas/join.c2
-rw-r--r--drivers/net/wireless/libertas/main.c2
3 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h
index 16e7ec11425b..4738afa61e33 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -287,7 +287,6 @@ struct _wlan_adapter {
287 u32 fragthsd; 287 u32 fragthsd;
288 u32 rtsthsd; 288 u32 rtsthsd;
289 289
290 u16 listeninterval;
291 u8 txretrycount; 290 u8 txretrycount;
292 291
293 /** Tx-related variables (for single packet tx) */ 292 /** Tx-related variables (for single packet tx) */
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c
index 0bded0c91495..e335a7e4adaa 100644
--- a/drivers/net/wireless/libertas/join.c
+++ b/drivers/net/wireless/libertas/join.c
@@ -369,7 +369,7 @@ int libertas_cmd_80211_associate(wlan_private * priv,
369 pos += sizeof(passo->peerstaaddr); 369 pos += sizeof(passo->peerstaaddr);
370 370
371 /* set the listen interval */ 371 /* set the listen interval */
372 passo->listeninterval = cpu_to_le16(adapter->listeninterval); 372 passo->listeninterval = cpu_to_le16(MRVDRV_DEFAULT_LISTEN_INTERVAL);
373 373
374 pos += sizeof(passo->capability); 374 pos += sizeof(passo->capability);
375 pos += sizeof(passo->listeninterval); 375 pos += sizeof(passo->listeninterval);
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index d227e453f984..d3316e413465 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -1051,8 +1051,6 @@ static void wlan_init_adapter(wlan_private * priv)
1051 1051
1052 adapter->psmode = WLAN802_11POWERMODECAM; 1052 adapter->psmode = WLAN802_11POWERMODECAM;
1053 1053
1054 adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL;
1055
1056 adapter->psstate = PS_STATE_FULL_POWER; 1054 adapter->psstate = PS_STATE_FULL_POWER;
1057 adapter->needtowakeup = 0; 1055 adapter->needtowakeup = 0;
1058 1056