Browse Source

qcacld-3.0: DP component compilation fix

Fix compilation related issue and other dependencies for
DP component

Change-Id: I3cbe061e6dbc36f21157c88ff63c7828026adb44
CRs-Fixed: 3189666
Amit Mehta 2 years ago
parent
commit
c489c30c86

+ 9 - 0
components/dp/core/inc/wlan_dp_txrx.h

@@ -24,6 +24,7 @@
 #include <qdf_pkt_add_timestamp.h>
 #include <enet.h>
 #include <qdf_tracepoint.h>
+#include "wlan_dp_priv.h"
 
 /** DP Tx Time out value */
 #define DP_TX_TIMEOUT   qdf_system_msecs_to_ticks(5000)
@@ -52,6 +53,14 @@
 #define DP_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK	7
 #define DP_CONNECTIVITY_CHECK_SET_TCP_ACK	8
 
+/**
+ * wlan_dp_intf_get_pkt_type_bitmap_value() - Get packt type bitmap info
+ * @intf_ctx: DP interface context
+ *
+ * Return: bitmap information
+ */
+uint32_t wlan_dp_intf_get_pkt_type_bitmap_value(void *intf_ctx);
+
 /**
  * dp_reset_all_intfs_connectivity_stats() - reset connectivity stats
  * @dp_ctx: pointer to DP Context

+ 12 - 0
components/dp/core/src/wlan_dp_txrx.c

@@ -43,6 +43,18 @@
 #include <wlan_tdls_ucfg_api.h>
 #include <qdf_trace.h>
 
+uint32_t wlan_dp_intf_get_pkt_type_bitmap_value(void *intf_ctx)
+{
+	struct wlan_dp_intf *dp_intf = (struct wlan_dp_intf *)intf_ctx;
+
+	if (!dp_intf) {
+		dp_err("DP Context is NULL");
+		return 0;
+	}
+
+	return dp_intf->pkt_type_bitmap;
+}
+
 #ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
 void dp_get_tx_resource(struct wlan_dp_intf *dp_intf,
 			struct qdf_mac_addr *mac_addr)

+ 8 - 0
components/dp/dispatcher/src/wlan_dp_ucfg_api.c

@@ -1910,6 +1910,14 @@ void ucfg_dp_register_hdd_callbacks(struct wlan_objmgr_psoc *psoc,
 	dp_ctx->dp_ops.dp_is_gratuitous_arp_unsolicited_na =
 		cb_obj->dp_is_gratuitous_arp_unsolicited_na;
 	dp_ctx->dp_ops.dp_send_rx_pkt_over_nl = cb_obj->dp_send_rx_pkt_over_nl;
+	dp_ctx->dp_ops.osif_dp_send_tcp_param_update_event =
+		cb_obj->osif_dp_send_tcp_param_update_event;
+	dp_ctx->dp_ops.os_if_dp_nud_stats_info =
+		cb_obj->os_if_dp_nud_stats_info;
+	dp_ctx->dp_ops.osif_dp_process_sta_mic_error =
+		cb_obj->osif_dp_process_sta_mic_error;
+	dp_ctx->dp_ops.osif_dp_process_sap_mic_error =
+		cb_obj->osif_dp_process_sap_mic_error;
 }
 
 void ucfg_dp_register_event_handler(struct wlan_objmgr_psoc *psoc,