ath11k: store and send country code to firmware after recovery
authorWen Gong <quic_wgong@quicinc.com>
Thu, 24 Mar 2022 01:18:56 +0000 (21:18 -0400)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 28 Mar 2022 11:48:52 +0000 (14:48 +0300)
commitb2beae327e039736299f3c6559f3467323fe68c5
tree49fce8be9c89468fdb20e243679a3fee508f6b2b
parent673424ce0e77450c24b300153387e271f470fc7c
ath11k: store and send country code to firmware after recovery

Currently ath11k does not send the country code to firmware after device
recovery, as a result the regdomain info is reported from firmware by
default. Regdomain info is important, so ath11k also need to restore
it to the value which was used before recovery.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220324011856.11014-1-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/reg.c