qcacmn: Add support for kernel feature flag

Add support for secure NAN and auth/deauth random TA feature by
enable compilation flag "WLAN_EXT_FEATURE_SECURE_NAN" and
"WLAN_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA"

Change-Id: I23788c3f48a61d8dc293b1049aa027a725386f6a
CRs-Fixed: 3493515
This commit is contained in:
Rahul Gusain
2023-05-10 16:23:18 +05:30
committed by Madan Koyyalamudi
parent dcc5bcfd68
commit a87ba5b55a

View File

@@ -259,4 +259,29 @@
#define WLAN_TID_LINK_MAP_SUPPORT #define WLAN_TID_LINK_MAP_SUPPORT
#endif #endif
/*
* CFG80211_EXT_FEATURE_SECURE_NAN
* Used to indicate Linux kernel contains support to secure NAN feature
*
* This feature was introduced in Linux Kernel 6.4 via:
* 9b89495e479c wifi: nl80211: Allow authentication frames and set keys on NAN
* interface
*/
#if ((LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) || \
(defined CFG80211_EXT_FEATURE_SECURE_NAN))
#define WLAN_EXT_FEATURE_SECURE_NAN
#endif
/*
* CFG80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA
* Used to indicate Linux kernel contains support to auth and deauth random TA
*
* This feature was introduced in Linux Kernel 6.4 via:
* 6933486133ec wifi: nl80211: Add support for randomizing TA of auth and deauth
* frames
*/
#if ((LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) || \
(defined CFG80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA))
#define WLAN_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA
#endif
#endif #endif