Parcourir la source

qcacmn: enable SON target_if

Add WLAN_FEATURE_SON to enable SON target_if

Change-Id: Ib4bca0eb5813d1fdd7becf6705ab7129a26e26e5
CRs-Fixed: 3102441
Rachit Kankane il y a 3 ans
Parent
commit
dffef9958a

+ 3 - 3
target_if/core/src/target_if_main.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 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
@@ -58,7 +58,7 @@
 #ifdef FEATURE_WLAN_TDLS
 #include "target_if_tdls.h"
 #endif
-#ifdef QCA_SUPPORT_SON
+#if defined(QCA_SUPPORT_SON) || defined(WLAN_FEATURE_SON)
 #include <target_if_son.h>
 #endif
 #ifdef WLAN_OFFCHAN_TXRX_ENABLE
@@ -276,7 +276,7 @@ static void target_if_wifi_pos_tx_ops_register(
 {
 }
 #endif
-#ifdef QCA_SUPPORT_SON
+#if defined(QCA_SUPPORT_SON) || defined(WLAN_FEATURE_SON)
 static void target_if_son_tx_ops_register(
 			struct wlan_lmac_if_tx_ops *tx_ops)
 {

+ 6 - 0
target_if/son/inc/target_if_son.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017,2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -30,3 +31,8 @@ u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type);
 QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
 			    u_int8_t *macaddr,
 			    struct wlan_objmgr_vdev *vdev);
+
+QDF_STATUS son_ol_peer_ext_stats_enable(struct wlan_objmgr_pdev *pdev,
+					uint8_t *peer_addr,
+					struct wlan_objmgr_vdev *vdev,
+					uint32_t stats_count, uint32_t enable);

+ 11 - 6
target_if/son/src/target_if_son.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -23,12 +24,21 @@
 #include <wmi_unified_api.h>
 #include <cdp_txrx_ctrl.h>
 
-#if QCA_SUPPORT_SON
+#if defined(QCA_SUPPORT_SON)
 
 u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type)
 {
 	return ol_if_peer_get_rate(peer, type);
 }
+#else
+
+u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type)
+{
+	return 0;
+}
+#endif
+
+#if defined(QCA_SUPPORT_SON) || defined(WLAN_FEATURE_SON)
 
 QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
 			 u_int8_t *macaddr,
@@ -100,11 +110,6 @@ void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
 
 #else
 
-u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type)
-{
-	return 0;
-}
-
 void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
 {
 	return;

+ 2 - 2
umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -1332,7 +1332,7 @@ struct wlan_lmac_if_tx_ops {
 #ifdef WLAN_IOT_SIM_SUPPORT
 	struct wlan_lmac_if_iot_sim_tx_ops iot_sim_tx_ops;
 #endif
-#ifdef QCA_SUPPORT_SON
+#if defined(QCA_SUPPORT_SON) || defined(WLAN_FEATURE_SON)
 	struct wlan_lmac_if_son_tx_ops son_tx_ops;
 #endif
 #ifdef WLAN_ATF_ENABLE