From dedc49bb06ff82e6ea1ba37751923c95e74357e4 Mon Sep 17 00:00:00 2001 From: Chaithanya Garrepalli Date: Wed, 20 Feb 2019 23:21:20 +0530 Subject: [PATCH] qcacmn: initialize DA WAR flag based on target type In SOC init initialize DA WAR flag based on target type Change-Id: I118e712393bdb1498925a2ee36a29819fd2de8b4 CRs-fixed: 2384550 --- dp/wifi3.0/dp_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index f578bee5e2..c1ed9ddf38 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -6685,7 +6685,7 @@ dp_print_ring_stat_from_hal(struct dp_soc *soc, struct dp_srng *srng, DP_PRINT_STATS("%s:SW:Head pointer = %d Tail Pointer = %d\n", ring_name, headp, tailp); - hal_get_hw_hptp(hal_soc, srng->hal_srng, &hw_headp, + hal_get_hw_hptp(soc->hal_soc, srng->hal_srng, &hw_headp, &hw_tailp, ring_type); DP_PRINT_STATS("%s:HW:Head pointer = %d Tail Pointer = %d\n", @@ -9697,6 +9697,7 @@ void *dp_soc_init(void *dpsoc, HTC_HANDLE htc_handle, void *hif_handle) wlan_cfg_set_reo_dst_ring_size(soc->wlan_cfg_ctx, REO_DST_RING_SIZE_QCA6290); soc->ast_override_support = 1; + soc->da_war_enabled = false; break; #ifdef QCA_WIFI_QCA6390 case TARGET_TYPE_QCA6390: @@ -9719,6 +9720,8 @@ void *dp_soc_init(void *dpsoc, HTC_HANDLE htc_handle, void *hif_handle) wlan_cfg_set_reo_dst_ring_size(soc->wlan_cfg_ctx, REO_DST_RING_SIZE_QCA8074); wlan_cfg_set_raw_mode_war(soc->wlan_cfg_ctx, true); + soc->hw_nac_monitor_support = 1; + soc->da_war_enabled = true; break; case TARGET_TYPE_QCA8074V2: case TARGET_TYPE_QCA6018: @@ -9729,6 +9732,7 @@ void *dp_soc_init(void *dpsoc, HTC_HANDLE htc_handle, void *hif_handle) soc->ast_override_support = 1; soc->per_tid_basize_max_tid = 8; soc->num_hw_dscp_tid_map = HAL_MAX_HW_DSCP_TID_V2_MAPS; + soc->da_war_enabled = false; break; default: qdf_print("%s: Unknown tgt type %d\n", __func__, target_type);