diff mbox series

[ath-current,1/2] Revert "wifi: ath11k: restore country code during resume"

Message ID 20240830073420.5790-2-quic_bqiang@quicinc.com
State New
Headers show
Series wifi: ath11k: revert hibernation support | expand

Commit Message

Baochen Qiang Aug. 30, 2024, 7:34 a.m. UTC
This reverts commit 7f0343b7b8710436c1e6355c71782d32ada47e0c.

We are going to revert commit 166a490f59ac ("wifi: ath11k: support hibernation"), on
which this commit depends. With that commit reverted, this one is not needed any
more, so revert this commit first.

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
 drivers/net/wireless/ath/ath11k/core.c | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Jeff Johnson Aug. 30, 2024, 3:55 p.m. UTC | #1
On 8/30/2024 12:34 AM, Baochen Qiang wrote:
> This reverts commit 7f0343b7b8710436c1e6355c71782d32ada47e0c.
> 
> We are going to revert commit 166a490f59ac ("wifi: ath11k: support hibernation"), on
> which this commit depends. With that commit reverted, this one is not needed any
> more, so revert this commit first.
> 
> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Kalle Valo Sept. 2, 2024, 4:27 p.m. UTC | #2
Baochen Qiang <quic_bqiang@quicinc.com> wrote:

> This reverts commit 7f0343b7b8710436c1e6355c71782d32ada47e0c.
> 
> We are going to revert commit 166a490f59ac ("wifi: ath11k: support hibernation"), on
> which this commit depends. With that commit reverted, this one is not needed any
> more, so revert this commit first.
> 
> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-current branch of ath.git, thanks.

d3e154d7776b Revert "wifi: ath11k: restore country code during resume"
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
index 03187df26000..325b930aaf06 100644
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -1009,16 +1009,6 @@  int ath11k_core_resume(struct ath11k_base *ab)
 		return -ETIMEDOUT;
 	}
 
-	if (ab->hw_params.current_cc_support &&
-	    ar->alpha2[0] != 0 && ar->alpha2[1] != 0) {
-		ret = ath11k_reg_set_cc(ar);
-		if (ret) {
-			ath11k_warn(ab, "failed to set country code during resume: %d\n",
-				    ret);
-			return ret;
-		}
-	}
-
 	ret = ath11k_dp_rx_pktlog_start(ab);
 	if (ret)
 		ath11k_warn(ab, "failed to start rx pktlog during resume: %d\n",