7e051b1f7393e65bae362fc46513ccaf75d55387

Older versions of kernel (<5.12) support the interface creation through vendor command. But newer versions of kernel(>5.12) expect the NDI interface creation to happen in two phases due to RTNL lock removal for the vendor commands. 1. Create an interface through add_virtual_intf in STA mode 2. Change the mode to NDI through vendor command. Currently, host driver restricts NDI creation to MAX_NDI_ADAPTERS(2) in kernel versions < 5.12 and same is applicable for newer kernels as well. Add the same check in NDI start for kernel versions >= 5.12. Currently, host driver uses macro "MAX_NDI_ADAPTERS" to limit the NDIs. Use the value of ini param "ndi_max_support" instead as this can be configured differently(1 or 2) for different targets. Change-Id: I355c42d60d6b86b4664ed001d7ed4d163a102159 CRs-Fixed: 3362601
This is CNSS WLAN Host Driver for products starting from iHelium
Description
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%