qcacmn: 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: Ie0d36c6e6d286a432bcaa99ee905858e70297ba1
CRs-Fixed: 3577264
This commit is contained in:
Aravind Kishore Sukla
2023-08-01 14:54:21 +05:30
committed by Rahul Choudhary
parent 202f03603c
commit 348c432963

View File

@@ -134,12 +134,12 @@
* used to indicate the Linux kernel contains support for multi AKM connect * used to indicate the Linux kernel contains support for multi AKM connect
* support * support
* *
* This feature was backported to Android Common Kernel 5.15 via: * This feature was introduced in Linux Kernel 6.0 via:
* https://android-review.googlesource.com/c/kernel/common/+/2115619 * ecad3b0b99bf wifi: cfg80211: Increase akm_suites array size in
* cfg80211_crypto_settings.
*/ */
#if (defined(__ANDROID_COMMON_KERNEL__) && \ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) || \
(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \ (defined CFG80211_MAX_NUM_AKM_SUITES))
(LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)))
#define CFG80211_MULTI_AKM_CONNECT_SUPPORT 1 #define CFG80211_MULTI_AKM_CONNECT_SUPPORT 1
#endif #endif