ath11k: fix wmi init configuration
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Wed, 4 Nov 2020 17:47:00 +0000 (23:17 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 08:05:37 +0000 (10:05 +0200)
commit36c7c640ffeb87168e5ff79b7a36ae3a020bd378
tree7644899f21eb63cb17eb4a0e8813b6d7454bcf36
parentab041d060ee655be528fa4ee6ee8f8c3f52a7056
ath11k: fix wmi init configuration

Assign the correct hw_op ath11k_init_wmi_config_ipq8074 to
the hw IPQ8074. Also update the correct TWT radio count.
Incorrect TWT radio count cause TWT feature fails on radio2
because physical device count is hardcoded to 2. so set
the value dynamically.

Found this during code review.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2

Fixes: 2d4bcbed5b7d53e1 ("ath11k: initialize wmi config based on hw_params")
Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1604512020-25197-1-git-send-email-periyasa@codeaurora.org
drivers/net/wireless/ath/ath11k/hw.c