From 2e17c21b55b6194b51cf3bca4b0f31ea64d81a24 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Thu, 7 Dec 2023 15:31:35 +0530 Subject: [PATCH] qcacmn: Enable CFG80211_SINGLE_NETDEV_MULTI_LINK_SUPPORT for kernel-6.6 Currently, CFG80211_SINGLE_NETDEV_MULTI_LINK_SUPPORT is enabled based on __ANDROID_COMMON_KERNEL__ and kernel version greater than equal to 5.15. Enable it for above condition or if kernel version is greater than or equal to 6.6. Change-Id: I12ae6bf116e37999c935012485651bfadf8b9b2a CRs-Fixed: 3681611 --- os_if/linux/wlan_osif_features.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/os_if/linux/wlan_osif_features.h b/os_if/linux/wlan_osif_features.h index bc586126ce..cba80749d0 100644 --- a/os_if/linux/wlan_osif_features.h +++ b/os_if/linux/wlan_osif_features.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 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 @@ -109,9 +109,10 @@ * https://android-review.googlesource.com/c/kernel/common/+/2115621 * */ -#if (defined(__ANDROID_COMMON_KERNEL__) && \ +#if ((defined(__ANDROID_COMMON_KERNEL__) && \ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \ - (defined IEEE80211_MLD_MAX_NUM_LINKS)) + (defined IEEE80211_MLD_MAX_NUM_LINKS)) || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0))) #define CFG80211_SINGLE_NETDEV_MULTI_LINK_SUPPORT 1 #endif