Преглед на файлове

qcacmn: Introduce a new macro to support ML external auth changes

Introduce new macro to support ML external auth changes in
host driver with cfg80211.

Change-Id: Ifa9ab729ce12b261d10cddc699bfb9a5e1b4956a
CRs-Fixed: 3385381
Deeksha Gupta преди 2 години
родител
ревизия
d7eb35e4de
променени са 1 файла, в които са добавени 19 реда и са изтрити 1 реда
  1. 19 1
      os_if/linux/wlan_osif_features.h

+ 19 - 1
os_if/linux/wlan_osif_features.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -228,4 +228,22 @@
 	(defined IEEE80211_EHT_OPER_INFO_PRESENT))
 #define CFG80211_TX_CONTROL_PORT_LINK_SUPPORT 1
 #endif
+
+/*
+ * CFG80211_EXTERNAL_AUTH_MLO_SUPPORT
+ * Used to indicate Linux kernel contains support for ML external auth
+ *
+ * TODO: Corresponding Linux kernel changes are still under wirless-next
+ * will add the commit-ID when available.
+ */
+/*
+ * TODO: will add this check when available.
+ * #if (defined(__ANDROID_COMMON_KERNEL__) && \
+ *	(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \
+ *	(defined CFG80211_EXTERNAL_AUTH_MLO_SUPPORT))
+ */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) || \
+	(defined CFG80211_EXTERNAL_AUTH_MLO_SUPPORT))
+#define WLAN_EXTERNAL_AUTH_MLO_SUPPORT
+#endif
 #endif