diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-08-02 13:09:49 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:50:03 -0400 |
commit | 56c4656e84d068ecc4da670799216e5b2aaee50e (patch) | |
tree | b1a6a1c450465af0c68f460f92af749e22119c8a | |
parent | 252cf0d10f76d3edcd808d462dcfbd544875a0be (diff) |
[PATCH] libertas: remove adapter->multipledtim
multipledtim was initialized with MRVDRV_DEFAULT_MULTIPLE_DTIM and then
kept at that value, so we could use that 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/cmd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 276d981e7d3d..517489a06063 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -71,7 +71,7 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv, | |||
71 | psm->locallisteninterval = 0; | 71 | psm->locallisteninterval = 0; |
72 | psm->nullpktinterval = 0; | 72 | psm->nullpktinterval = 0; |
73 | psm->multipledtim = | 73 | psm->multipledtim = |
74 | cpu_to_le16(priv->adapter->multipledtim); | 74 | cpu_to_le16(MRVDRV_DEFAULT_MULTIPLE_DTIM); |
75 | break; | 75 | break; |
76 | 76 | ||
77 | case CMD_SUBCMD_EXIT_PS: | 77 | case CMD_SUBCMD_EXIT_PS: |
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index cf4ed5d01458..0f383e3f6f06 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -307,7 +307,6 @@ struct _wlan_adapter { | |||
307 | 307 | ||
308 | u16 psmode; /* Wlan802_11PowermodeCAM=disable | 308 | u16 psmode; /* Wlan802_11PowermodeCAM=disable |
309 | Wlan802_11PowermodeMAX_PSP=enable */ | 309 | Wlan802_11PowermodeMAX_PSP=enable */ |
310 | u16 multipledtim; | ||
311 | u32 psstate; | 310 | u32 psstate; |
312 | u8 needtowakeup; | 311 | u8 needtowakeup; |
313 | 312 | ||
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index c35605acf820..df06d40ffdea 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -1053,7 +1053,6 @@ static void wlan_init_adapter(wlan_private * priv) | |||
1053 | adapter->capability = WLAN_CAPABILITY_SHORT_PREAMBLE; | 1053 | adapter->capability = WLAN_CAPABILITY_SHORT_PREAMBLE; |
1054 | 1054 | ||
1055 | adapter->psmode = WLAN802_11POWERMODECAM; | 1055 | adapter->psmode = WLAN802_11POWERMODECAM; |
1056 | adapter->multipledtim = MRVDRV_DEFAULT_MULTIPLE_DTIM; | ||
1057 | 1056 | ||
1058 | adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL; | 1057 | adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL; |
1059 | 1058 | ||