Skip to content

Commit

Permalink
[PATCH] libertas: remove adapter->locallisteninterval
Browse files Browse the repository at this point in the history
locallisteninterval was initialized with 0, but there is no code that
changes it, rendering it rather useless.

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 97605c3 commit 252cf0d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv,
u16 cmd_action)
{
struct cmd_ds_802_11_ps_mode *psm = &cmd->params.psmode;
wlan_adapter *adapter = priv->adapter;

lbs_deb_enter(LBS_DEB_CMD);

Expand All @@ -68,11 +67,8 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv,
switch (cmd_action) {
case CMD_SUBCMD_ENTER_PS:
lbs_deb_cmd("PS command:" "SubCode- Enter PS\n");
lbs_deb_cmd("locallisteninterval %d\n",
adapter->locallisteninterval);

psm->locallisteninterval =
cpu_to_le16(adapter->locallisteninterval);
psm->locallisteninterval = 0;
psm->nullpktinterval = 0;
psm->multipledtim =
cpu_to_le16(priv->adapter->multipledtim);
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 @@ -312,7 +312,6 @@ struct _wlan_adapter {
u8 needtowakeup;

struct PS_CMD_ConfirmSleep libertas_ps_confirm_sleep;
u16 locallisteninterval;

struct assoc_request * pending_assoc_req;
struct assoc_request * in_progress_assoc_req;
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 @@ -1059,7 +1059,6 @@ static void wlan_init_adapter(wlan_private * priv)

adapter->psstate = PS_STATE_FULL_POWER;
adapter->needtowakeup = 0;
adapter->locallisteninterval = 0; /* default value in firmware will be used */

adapter->intcounter = 0;

Expand Down

0 comments on commit 252cf0d

Please sign in to comment.