From: Ben Greear QCN9274 single-band radios (such as Compex WLTE7000E2/5/6) have only a single endpoint, and radio instance will fail to load if it tries and fails to load the additional endpoints. Limit to single endpoint in this case. Tested-on: Compex WLTE7000E2/5/6 with QCN9274 chipset, x86-64 Signed-off-by: Prashant Gupta Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath12k/htc.c | 7 +++++++ 1 file changed, 7 insertions(+) NOTE: Prashant did the hard work on this. I do not have any non pcie based qca wifi-7 radios to test on. diff --git a/drivers/net/wireless/ath/ath12k/htc.c b/drivers/net/wireless/ath/ath12k/htc.c index a9241d290534..e57c1d181382 100644 --- a/drivers/net/wireless/ath/ath12k/htc.c +++ b/drivers/net/wireless/ath/ath12k/htc.c @@ -775,6 +775,13 @@ int ath12k_htc_init(struct ath12k_base *ab) break; default: htc->wmi_ep_count = ab->hw_params->max_radios; + /* QCN9274 single-band radios need to cap to + * the fw reported count. + */ + if (ab->qmi.num_radios != U8_MAX && + ab->qmi.num_radios >= 1 && + ab->qmi.num_radios < htc->wmi_ep_count) + htc->wmi_ep_count = ab->qmi.num_radios; break; } -- 2.42.0