Browse Source

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
Surabhi Vishnoi 1 năm trước cách đây
mục cha
commit
2e17c21b55
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      os_if/linux/wlan_osif_features.h

+ 4 - 3
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