]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: add ath12k_get_num_hw()
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Fri, 29 Nov 2024 11:20:33 +0000 (13:20 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Sat, 30 Nov 2024 12:10:36 +0000 (14:10 +0200)
commit17dd22aff52716eda49541bfec71a8f10bd7e514
tree273f81f4303b7a0ff0de84cc1493e932ae15320f
parent016abac20b832ce2e2b8afbe2c9ef8158ad1cfe8
wifi: ath12k: add ath12k_get_num_hw()

Currently, one or more struct ath12k_hw is part of device (struct ath12k_base)
but in future, ath12k_hw would be part of device group (struct
ath12k_hw_group).  Hence, num_hw under device would be moved to device group.

To facilitate above transition, add helper ath12k_get_num_hw() to get the
number of radios per device. In future, this helper will return the number of
radios in a device group.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: Harshitha Prem <quic_hprem@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20241128165026.2618331-4-kvalo@kernel.org
drivers/net/wireless/ath/ath12k/core.c
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/mac.c