Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236338
b: refs/heads/master
c: 679a249
h: refs/heads/master
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Mar 9, 2011
1 parent 83e98a0 commit f2bde90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7703f04dafd8705b6fa234e784d1a23c4b641f3d
refs/heads/master: 679a2494fbe357dc81c97a6097d70e53cd2e5b3f
9 changes: 4 additions & 5 deletions trunk/drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3046,9 +3046,8 @@ static void InactivePsWorkItemCallback(struct r8192_priv *priv)

#ifdef ENABLE_LPS
/* Change current and default preamble mode. */
bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode)
bool MgntActSet_802_11_PowerSaveMode(struct r8192_priv *priv, u8 rtPsMode)
{
struct r8192_priv *priv = ieee80211_priv(dev);

// Currently, we do not change power save mode on IBSS mode.
if(priv->ieee80211->iw_mode == IW_MODE_ADHOC)
Expand All @@ -3075,7 +3074,7 @@ bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode)
if(priv->ieee80211->sta_sleep != 0 && rtPsMode == IEEE80211_PS_DISABLED)
{
// Notify the AP we awke.
rtl8192_hw_wakeup(dev);
rtl8192_hw_wakeup(priv->ieee80211->dev);
priv->ieee80211->sta_sleep = 0;

spin_lock(&priv->ieee80211->mgmt_tx_lock);
Expand Down Expand Up @@ -3107,7 +3106,7 @@ void LeisurePSEnter(struct net_device *dev)

if(priv->ieee80211->ps == IEEE80211_PS_DISABLED)
{
MgntActSet_802_11_PowerSaveMode(dev, IEEE80211_PS_MBCAST|IEEE80211_PS_UNICAST);
MgntActSet_802_11_PowerSaveMode(priv, IEEE80211_PS_MBCAST|IEEE80211_PS_UNICAST);

}
}
Expand All @@ -3128,7 +3127,7 @@ void LeisurePSLeave(struct net_device *dev)
if(priv->ieee80211->ps != IEEE80211_PS_DISABLED)
{
// move to lps_wakecomplete()
MgntActSet_802_11_PowerSaveMode(dev, IEEE80211_PS_DISABLED);
MgntActSet_802_11_PowerSaveMode(priv, IEEE80211_PS_DISABLED);

}
}
Expand Down

0 comments on commit f2bde90

Please sign in to comment.