diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2014-12-18 03:05:30 -0600 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2014-12-24 18:30:27 +0200 |
commit | 99057920a2f7360977979dc4c2ba60d5f9dc9e23 (patch) | |
tree | 1598ed11a01d5ff90a7b5ea6752d0e2b6c1d156f /drivers | |
parent | ff6ee6b0ce1f62936a916ef1c33015a2ec48925e (diff) | |
download | op-kernel-dev-99057920a2f7360977979dc4c2ba60d5f9dc9e23.zip op-kernel-dev-99057920a2f7360977979dc4c2ba60d5f9dc9e23.tar.gz |
rtlwifi: rtl8192ce: Improve RF sleep routine
These changes match those of the latest vendor driver.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/phy.c b/drivers/net/wireless/rtlwifi/rtl8192ce/phy.c index bc5ca98..1ee5a6a 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/phy.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/phy.c @@ -518,11 +518,12 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw, } case ERFSLEEP:{ if (ppsc->rfpwr_state == ERFOFF) - return false; + break; for (queue_id = 0, i = 0; queue_id < RTL_PCI_MAX_TX_QUEUE_COUNT;) { ring = &pcipriv->dev.tx_ring[queue_id]; - if (skb_queue_len(&ring->queue) == 0) { + if (queue_id == BEACON_QUEUE || + skb_queue_len(&ring->queue) == 0) { queue_id++; continue; } else { |