Skip to content

Commit

Permalink
staging: rtl8192e: Pass priv to rtl8192_hw_sleep_down
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Mar 9, 2011
1 parent 95a9a65 commit 176e8dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1824,9 +1824,8 @@ static short rtl8192_is_tx_queue_empty(struct net_device *dev)
return 1;
}

static void rtl8192_hw_sleep_down(struct net_device *dev)
static void rtl8192_hw_sleep_down(struct r8192_priv *priv)
{
struct r8192_priv *priv = ieee80211_priv(dev);
MgntActSet_RF_State(priv, eRfSleep, RF_CHANGE_BY_PS);
}

Expand Down Expand Up @@ -1879,7 +1878,7 @@ static void rtl8192_hw_to_sleep(struct net_device *dev, u32 th, u32 tl)
queue_delayed_work(priv->ieee80211->wq,
&priv->ieee80211->hw_wakeup_wq,tmp);

rtl8192_hw_sleep_down(dev);
rtl8192_hw_sleep_down(priv);
}

static void rtl8192_init_priv_variable(struct r8192_priv *priv)
Expand Down

0 comments on commit 176e8dc

Please sign in to comment.