Explorar o código

qcacmn: Add back port flag for multi AKM connect support

Add logic to set back port flag based on Linux kernel version
for multi AKM connect support.

Change-Id: Ia2365afc678edf025f63d4d3c0fc963c97193eb8
CRs-Fixed: 3246135
Aravind Kishore Sukla %!s(int64=3) %!d(string=hai) anos
pai
achega
d7c3414ca0
Modificáronse 2 ficheiros con 15 adicións e 0 borrados
  1. 1 0
      os_if/linux/mlme/inc/osif_cm_req.h
  2. 14 0
      os_if/linux/wlan_osif_features.h

+ 1 - 0
os_if/linux/mlme/inc/osif_cm_req.h

@@ -29,6 +29,7 @@
 #include "wlan_cm_public_struct.h"
 #include <net/cfg80211.h>
 #include "wlan_objmgr_vdev_obj.h"
+#include "wlan_osif_features.h"
 
 /**
  * struct osif_connect_params - extra connect params

+ 14 - 0
os_if/linux/wlan_osif_features.h

@@ -129,4 +129,18 @@
 	(defined  CFG80211_EXTERNAL_AUTH_TA_SUPPORT))
 #define CFG80211_SAE_AUTH_TA_ADDR_SUPPORT 1
 #endif
+
+/*
+ * CFG80211_MULTI_AKM_CONNECT_SUPPORT
+ * used to indicate the Linux kernel contains support for multi AKM connect
+ * support
+ *
+ * This feature was backported to Android Common Kernel 5.15 via:
+ * https://android-review.googlesource.com/c/kernel/common/+/2115619
+ */
+#if (defined(__ANDROID_COMMON_KERNEL__) && \
+	(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && \
+	(LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)))
+#define CFG80211_MULTI_AKM_CONNECT_SUPPORT 1
+#endif
 #endif