Skip to content

Commit

Permalink
[PATCH] libertas: remove adapter->multipledtim
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Holger Schurig authored and David S. Miller committed Oct 10, 2007
1 parent 252cf0d commit 56c4656
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv,
psm->locallisteninterval = 0;
psm->nullpktinterval = 0;
psm->multipledtim =
cpu_to_le16(priv->adapter->multipledtim);
cpu_to_le16(MRVDRV_DEFAULT_MULTIPLE_DTIM);
break;

case CMD_SUBCMD_EXIT_PS:
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/libertas/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ struct _wlan_adapter {

u16 psmode; /* Wlan802_11PowermodeCAM=disable
Wlan802_11PowermodeMAX_PSP=enable */
u16 multipledtim;
u32 psstate;
u8 needtowakeup;

Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,6 @@ static void wlan_init_adapter(wlan_private * priv)
adapter->capability = WLAN_CAPABILITY_SHORT_PREAMBLE;

adapter->psmode = WLAN802_11POWERMODECAM;
adapter->multipledtim = MRVDRV_DEFAULT_MULTIPLE_DTIM;

adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL;

Expand Down

0 comments on commit 56c4656

Please sign in to comment.