Ver Fonte

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
Rahul Gusain há 2 anos atrás
pai
commit
a87ba5b55a
1 ficheiros alterados com 25 adições e 0 exclusões
  1. 25 0
      os_if/linux/wlan_osif_features.h

+ 25 - 0
os_if/linux/wlan_osif_features.h

@@ -259,4 +259,29 @@
 #define WLAN_TID_LINK_MAP_SUPPORT
 #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