]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ath11k: refactor setting country code logic
authorBaochen Qiang <quic_bqiang@quicinc.com>
Tue, 21 May 2024 08:08:10 +0000 (11:08 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Sat, 25 May 2024 08:55:31 +0000 (11:55 +0300)
commitb363614c0c80f9e2f3ffe8e77270e783a0fb8ab5
tree3dcc3cb8bbca33659d6ce224cba29fe3e7fd0a1c
parent35864b62fa129196af4641b8bef50ac4226a22ed
wifi: ath11k: refactor setting country code logic

ath11k_wmi_send_set_current_country_cmd() is called in several places
and all of them are just simply repeating the same logic.

Refactor to make code clean.

Compile tested only.

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240520024148.5472-2-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/reg.c
drivers/net/wireless/ath/ath11k/reg.h