From 10892b0f48c86228f46b0ee71181bd7968144d7a Mon Sep 17 00:00:00 2001 From: Vinod Kumar Pirla Date: Tue, 8 Nov 2022 00:41:17 -0800 Subject: [PATCH] qcacmn: Introduce new macros to interface ML SAP changes Introduce new macros to interface ML SAP capable host driver with cfg80211. SAP needs to provide additional information about the clients when beaconing as ML SAP. Change-Id: Ie673927d1f8617da38170d41e6aaedae13f4f5c8 CRs-Fixed: 3331264 --- os_if/linux/wlan_osif_features.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/os_if/linux/wlan_osif_features.h b/os_if/linux/wlan_osif_features.h index 08427ae3bc..0bf522ace6 100644 --- a/os_if/linux/wlan_osif_features.h +++ b/os_if/linux/wlan_osif_features.h @@ -142,4 +142,25 @@ (LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0))) #define CFG80211_MULTI_AKM_CONNECT_SUPPORT 1 #endif + +/* + * WLAN_MLD_AP_STA_CONNECT_SUPPORT + * Used to indicate Linux Kernel supports ML connection on SAP. + */ +#if (defined(__ANDROID_COMMON_KERNEL__) && \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \ + (defined CFG80211_MLD_AP_STA_CONNECT_SUPPORT)) +#define WLAN_MLD_AP_STA_CONNECT_SUPPORT 1 +#endif + +/* + * WLAN_MLD_AP_OWE_INFO_SUPPORT + * Used to indicate Linux Kernel supports ML OWE connection + * on SAP + */ +#if (defined(__ANDROID_COMMON_KERNEL__) && \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \ + (defined CFG80211_MLD_AP_OWE_INFO_SUPPORT)) +#define WLAN_MLD_AP_OWE_INFO_SUPPORT 1 +#endif #endif