Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99057920 authored by Larry Finger's avatar Larry Finger Committed by Kalle Valo
Browse files

rtlwifi: rtl8192ce: Improve RF sleep routine



These changes match those of the latest vendor driver.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ff6ee6b0
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -518,11 +518,12 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw,
		}
		}
	case ERFSLEEP:{
	case ERFSLEEP:{
			if (ppsc->rfpwr_state == ERFOFF)
			if (ppsc->rfpwr_state == ERFOFF)
				return false;
				break;
			for (queue_id = 0, i = 0;
			for (queue_id = 0, i = 0;
			     queue_id < RTL_PCI_MAX_TX_QUEUE_COUNT;) {
			     queue_id < RTL_PCI_MAX_TX_QUEUE_COUNT;) {
				ring = &pcipriv->dev.tx_ring[queue_id];
				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++;
					queue_id++;
					continue;
					continue;
				} else {
				} else {