]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Fix pdev id sent to firmware for single phy devices
authorLingbo Kong <quic_lingbok@quicinc.com>
Fri, 21 Jun 2024 10:28:09 +0000 (15:58 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 26 Jun 2024 15:40:55 +0000 (18:40 +0300)
commit2c7857677d695166e913123b23ed7e55d80f72be
tree181651b5e548add037dce6a2c2a58297ed54eb60
parent7af01e5695295444d47f4ead3e27e91d8c9e60f4
wifi: ath12k: Fix pdev id sent to firmware for single phy devices

Pdev id from mac phy capabilities will be sent as a part of
HTT/WMI command to firmware. This causes issue with single pdev
devices where firmware does not respond to the WMI/HTT request
sent from host.

For single pdev devices firmware expects pdev id as 1 for 5 GHz/6 GHz
phy and 2 for 2 GHz band. Add wrapper ath12k_mac_get_target_pdev_id()
to help fetch right pdev for single pdev devices.

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: Lingbo Kong <quic_lingbok@quicinc.com>
Signed-off-by: Ramya Gnanasekar <quic_rgnanase@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240621102809.3984004-1-quic_rgnanase@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c
drivers/net/wireless/ath/ath12k/mac.h