wifi: ath12k: refactor the rfkill worker
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Thu, 25 Jan 2024 15:45:55 +0000 (21:15 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 2 Feb 2024 12:38:51 +0000 (14:38 +0200)
commite7c7fbb582bc7936cf7ee744f62b82bd46a7d4a8
treebd2be0b8697bd1b93f994055c2fe779919bb815f
parentad2b29ad94c3ed9e39f2eae50915c0f34af4f6fc
wifi: ath12k: refactor the rfkill worker

Currently, the rfkill worker handler access mac80211 HW from the radio/link
structure. This is will be incorrect for single wiphy model, as they will
hold multiple link/radio structures. To fix this, access mac80211 HW based
on the number of hardware in the SoC/chip. This approach makes the rfkill
worker handler compatible with both multi wiphy and single wiphy models.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240125154555.3169706-1-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/core.c