qcacld-3.0: Enable CFG80211_MULTI_AKM_CONNECT_SUPPORT from kernelv6.0

Current code supports CFG80211_MULTI_AKM_CONNECT_SUPPORT only for
v5.15 kernel.

Enable this feature support from kernelv6.0 by default.

Change-Id: I6fbf83df54fd898abde0546f526b193a6d8dc620
CRs-Fixed: 3806550
This commit is contained in:
Srikanth Marepalli 2024-05-04 00:42:26 +05:30 • committed by Ravindra Konda
commit d4e50bce79

View file

@ -208,6 +208,20 @@ extern const struct nla_policy wlan_hdd_wisa_cmd_policy[
#define USE_CFG80211_DEL_STA_V2
#endif
/*
* CFG80211_MULTI_AKM_CONNECT_SUPPORT
* used to indicate the Linux kernel contains support for multi AKM connect
* support
*
* This feature was introduced in Linux Kernel 6.0 via:
* ecad3b0b99bf wifi: cfg80211: Increase akm_suites array size in
* cfg80211_crypto_settings.
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) || \
(defined CFG80211_MAX_NUM_AKM_SUITES))
#define CFG80211_MULTI_AKM_CONNECT_SUPPORT 1
#endif
#ifdef CFG80211_MULTI_AKM_CONNECT_SUPPORT
#define WLAN_CM_MAX_CONNECT_AKMS 5
#endif