Преглед изворни кода

qcacmn: indicate Upstream Kernel supports ML connection on SAP

Define backport to indicate kernel support for ML connection on SAP

Change-Id: Id8e2f4942dd133c3c62d77b6775ffc6abae1a219
CRs-Fixed: 3497910
Arun Kumar Khandavalli пре 2 година
родитељ
комит
c8b6296d6b
1 измењених фајлова са 24 додато и 0 уклоњено
  1. 24 0
      os_if/linux/wlan_osif_features.h

+ 24 - 0
os_if/linux/wlan_osif_features.h

@@ -284,4 +284,28 @@
 	(defined CFG80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA))
 #define WLAN_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA
 #endif
+
+/*
+ * WLAN_MLD_AP_STA_CONNECT_SUPPORT
+ * Used to indicate Linux Upstream Kernel supports ML connection on SAP.
+ *
+ * This feature was introduced in Linux Kernel 6.3 via:
+ * a42e59e: wifi: cfg80211: Extend cfg80211_new_sta() for MLD AP
+ * 8bb588d: wifi: cfg80211: Extend cfg80211_update_owe_info_event() for MLD AP
+ *
+ * This feature was backported to Android Common Kernel 5.15.74 via:
+ * https://android-review.googlesource.com/c/kernel/common/+/2450265
+ * https://android-review.googlesource.com/c/kernel/common/+/2450266
+ *
+ * This feature was backported to Android Common Kernel 6.1 via:
+ * https://android-review.googlesource.com/c/kernel/common/+/2470890
+ * https://android-review.googlesource.com/c/kernel/common/+/2470891
+ */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) || \
+	(defined(__ANDROID_COMMON_KERNEL__) && \
+	(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \
+	(defined CFG80211_MLD_AP_STA_CONNECT_UPSTREAM_SUPPORT)))
+#define WLAN_MLD_AP_STA_CONNECT_UPSTREAM_SUPPORT 1
+#endif
+
 #endif