From c8b6296d6b953892a615b0b31d2a2346c0c40d5c Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Mon, 8 May 2023 15:02:52 +0530 Subject: [PATCH] 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 --- os_if/linux/wlan_osif_features.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/os_if/linux/wlan_osif_features.h b/os_if/linux/wlan_osif_features.h index 856f058e72..fc9258f184 100644 --- a/os_if/linux/wlan_osif_features.h +++ b/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