From d7eb35e4de1b4674ff606ca819b082f19be33f36 Mon Sep 17 00:00:00 2001 From: Deeksha Gupta Date: Fri, 20 Jan 2023 14:57:23 +0530 Subject: [PATCH] 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 --- os_if/linux/wlan_osif_features.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/os_if/linux/wlan_osif_features.h b/os_if/linux/wlan_osif_features.h index 1d5417fc30..c607c5e463 100644 --- a/os_if/linux/wlan_osif_features.h +++ b/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