Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279335
b: refs/heads/master
c: b9116b9
h: refs/heads/master
i:
  279333: 586daa2
  279331: ac9c196
  279327: ac443ca
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Dec 19, 2011
1 parent a6be94b commit 1761c46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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: f72ae31e6f0442936c23287d34500fb93b7ac7b8
refs/heads/master: b9116b9a2b5db63187d28f99e038f473fad036dc
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/rtlwifi/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ int rtl_init_core(struct ieee80211_hw *hw)
/* <4> locks */
mutex_init(&rtlpriv->locks.conf_mutex);
mutex_init(&rtlpriv->locks.ps_mutex);
spin_lock_init(&rtlpriv->locks.ips_lock);
spin_lock_init(&rtlpriv->locks.irq_th_lock);
spin_lock_init(&rtlpriv->locks.h2c_lock);
spin_lock_init(&rtlpriv->locks.rf_ps_lock);
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/rtlwifi/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,12 @@ void rtl_ips_nic_on(struct ieee80211_hw *hw)
struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
enum rf_pwrstate rtstate;
unsigned long flags;

if (mac->opmode != NL80211_IFTYPE_STATION)
return;

mutex_lock(&rtlpriv->locks.ps_mutex);
spin_lock_irqsave(&rtlpriv->locks.ips_lock, flags);

if (ppsc->inactiveps) {
rtstate = ppsc->rfpwr_state;
Expand All @@ -257,7 +258,7 @@ void rtl_ips_nic_on(struct ieee80211_hw *hw)
}
}

mutex_unlock(&rtlpriv->locks.ps_mutex);
spin_unlock_irqrestore(&rtlpriv->locks.ips_lock, flags);
}

/*for FW LPS*/
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/rtlwifi/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,7 @@ struct rtl_locks {
struct mutex ps_mutex;

/*spin lock */
spinlock_t ips_lock;
spinlock_t irq_th_lock;
spinlock_t h2c_lock;
spinlock_t rf_ps_lock;
Expand Down

0 comments on commit 1761c46

Please sign in to comment.