Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=252cf0d10f76d3edcd808d462dcfbd544875a0be
Commit:     252cf0d10f76d3edcd808d462dcfbd544875a0be
Parent:     97605c3eb3dee943a45584be92c46be1305b3ef5
Author:     Holger Schurig <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 2 13:09:34 2007 -0400
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:50:03 2007 -0700

    [PATCH] libertas: remove adapter->locallisteninterval
    
    locallisteninterval was initialized with 0, but there is no code that
    changes it, rendering it rather useless.
    
    Signed-off-by: Holger Schurig <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/cmd.c  |    6 +-----
 drivers/net/wireless/libertas/dev.h  |    1 -
 drivers/net/wireless/libertas/main.c |    1 -
 3 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/net/wireless/libertas/cmd.c 
b/drivers/net/wireless/libertas/cmd.c
index f5d4971..276d981 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -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);
 
@@ -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);
diff --git a/drivers/net/wireless/libertas/dev.h 
b/drivers/net/wireless/libertas/dev.h
index 6e78e31..cf4ed5d 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -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;
diff --git a/drivers/net/wireless/libertas/main.c 
b/drivers/net/wireless/libertas/main.c
index 6ba3fa4..c35605a 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to