aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-03-19 09:25:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-25 16:41:49 -0400
commitd4ff0ef635b222d5f66dad65e9364d702e5f94e0 (patch)
tree048e3396088a81a945c1af6d0a8493b9f145fd56 /drivers/net/wireless/libertas/cmd.c
parentc49c3b77c8c611f562ca4e201d88d3e69465f928 (diff)
libertas: misc power saving adjusts
* firmware for the CF card supports power saving * the driver currenly only accept "iwconfig ethX power on|off", so I fixed what the range wext ioctl reports. * initialize value/flags in lbs_get_power() * get rid of unused parameter psmode in lbs_ps_confirm_sleep() * some minor debug output tweaks Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r--drivers/net/wireless/libertas/cmd.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 5e35788946f1..733110a03b56 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -1927,10 +1927,6 @@ static int sendconfirmsleep(struct lbs_private *priv, u8 *cmdptr, u16 size)
1927 int ret = 0; 1927 int ret = 0;
1928 1928
1929 lbs_deb_enter(LBS_DEB_HOST); 1929 lbs_deb_enter(LBS_DEB_HOST);
1930
1931 lbs_deb_host("SEND_SLEEPC_CMD: before download, cmd size %d\n",
1932 size);
1933
1934 lbs_deb_hex(LBS_DEB_HOST, "sleep confirm command", cmdptr, size); 1930 lbs_deb_hex(LBS_DEB_HOST, "sleep confirm command", cmdptr, size);
1935 1931
1936 ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size); 1932 ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size);
@@ -1953,8 +1949,6 @@ static int sendconfirmsleep(struct lbs_private *priv, u8 *cmdptr, u16 size)
1953 priv->intcounter); 1949 priv->intcounter);
1954 } 1950 }
1955 spin_unlock_irqrestore(&priv->driver_lock, flags); 1951 spin_unlock_irqrestore(&priv->driver_lock, flags);
1956
1957 lbs_deb_host("SEND_SLEEPC_CMD: sent confirm sleep\n");
1958 } 1952 }
1959 1953
1960 lbs_deb_leave_args(LBS_DEB_HOST, "ret %d", ret); 1954 lbs_deb_leave_args(LBS_DEB_HOST, "ret %d", ret);
@@ -2006,10 +2000,10 @@ void lbs_ps_wakeup(struct lbs_private *priv, int wait_option)
2006 * @param psmode Power Saving mode 2000 * @param psmode Power Saving mode
2007 * @return n/a 2001 * @return n/a
2008 */ 2002 */
2009void lbs_ps_confirm_sleep(struct lbs_private *priv, u16 psmode) 2003void lbs_ps_confirm_sleep(struct lbs_private *priv)
2010{ 2004{
2011 unsigned long flags =0; 2005 unsigned long flags =0;
2012 u8 allowed = 1; 2006 int allowed = 1;
2013 2007
2014 lbs_deb_enter(LBS_DEB_HOST); 2008 lbs_deb_enter(LBS_DEB_HOST);
2015 2009