wifi: ath12k: change interface combination for P2P mode
authorKang Yang <quic_kangyang@quicinc.com>
Mon, 5 Feb 2024 17:03:27 +0000 (19:03 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 7 Feb 2024 15:06:58 +0000 (17:06 +0200)
commitef860c6a3adfc5f3fc5b5c96fc0e1856c944a1d1
treec960bc0a5e199126a67e27222dbddd34bd916fd5
parent019b58dcb6ed267e17b7efd03ec8575c1b67d942
wifi: ath12k: change interface combination for P2P mode

Current interface combination doesn't support P2P mode. Change the
combination for P2P mode.

Also, there is a bug that when mesh is enabled but ap is not enabled.
In this situation, the mesh's max_interface of interface combination
won't be set.

So assign the max_interfaces for mesh directly.

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

Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240130040303.370590-4-quic_kangyang@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c