wifi: ath12k: Modify set and get antenna mac ops for single wiphy
authorSriram R <quic_srirrama@quicinc.com>
Tue, 9 Apr 2024 11:49:35 +0000 (14:49 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 10 Apr 2024 14:12:15 +0000 (17:12 +0300)
commit5a6af83c397ddfd0ed1ab872b89bd626506e675b
tree21429c5d812f1047932031d5228abaff359813a3
parent0da00e45ee9ab1858a80a855f9acdc9cc87175b8
wifi: ath12k: Modify set and get antenna mac ops for single wiphy

As multiple radios are combined into a single wiphy, and
the current infrastructure supports only set/get antenna
for the wiphy, the max Tx/Rx antenna capability is advertised
during wiphy register.
Hence, When antenna set/get is received we adjust the set/get
based on max radio capability and set/get antenna accordingly.

Multi radio capability needs to introduced with interface
combination changes to support single wiphy model in cfg80211
which would help extend the wiphy specific get/set configs similar
to this to per hw level.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-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: Sriram R <quic_srirrama@quicinc.com>
Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240405194519.1337906-11-quic_ramess@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c