diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 50b8086ee1..efaf5cf2c8 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -14237,6 +14237,17 @@ fail1: return QDF_STATUS_E_NOMEM; } +static void dp_soc_cfg_dump(struct dp_soc *soc, uint32_t target_type) +{ + dp_init_info("DP soc Dump for Target = %d", target_type); + dp_init_info("ast_override_support = %d, da_war_enabled = %d,", + soc->ast_override_support, soc->da_war_enabled); + dp_init_info("hw_nac_monitor_support = %d", + soc->hw_nac_monitor_support); + + wlan_cfg_dp_soc_ctx_dump(soc->wlan_cfg_ctx); +} + /** * dp_soc_cfg_init() - initialize target specific configuration * during dp_soc_init @@ -14244,7 +14255,7 @@ fail1: */ static void dp_soc_cfg_init(struct dp_soc *soc) { - int target_type; + uint32_t target_type; target_type = hal_get_target_type(soc->hal_soc); switch (target_type) { @@ -14333,6 +14344,7 @@ static void dp_soc_cfg_init(struct dp_soc *soc) qdf_assert_always(0); break; } + dp_soc_cfg_dump(soc, target_type); } /** diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index fdce316cf6..18a7718aca 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -1480,6 +1480,11 @@ dp_rx_handle_ppdu_stats(struct dp_soc *soc, struct dp_pdev *pdev, } } qdf_spin_unlock_bh(&pdev->neighbour_peer_mutex); + } else { + dp_info("Neighbour peers RSSI update failed! fc_valid = %d, to_ds_flag = %d and mac_addr2_valid = %d", + ppdu_info->nac_info.fc_valid, + ppdu_info->nac_info.to_ds_flag, + ppdu_info->nac_info.mac_addr2_valid); } /* need not generate wdi event when mcopy, cfr rcc mode and diff --git a/wlan_cfg/wlan_cfg.c b/wlan_cfg/wlan_cfg.c index 5c1334a8c4..0f301f8010 100644 --- a/wlan_cfg/wlan_cfg.c +++ b/wlan_cfg/wlan_cfg.c @@ -1542,3 +1542,11 @@ wlan_cfg_is_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg) { return cfg->delay_mon_replenish; } + +void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg) +{ + dp_info("DP CFG SoC ctx: delay_mon_replenish = %d,", + cfg->delay_mon_replenish); + dp_info("reo_dst_ring_size = %d, delayed_replenish_entries = %d", + cfg->reo_dst_ring_size, cfg->delayed_replenish_entries); +} diff --git a/wlan_cfg/wlan_cfg.h b/wlan_cfg/wlan_cfg.h index 8bf42a91b5..e7ebd7581b 100644 --- a/wlan_cfg/wlan_cfg.h +++ b/wlan_cfg/wlan_cfg.h @@ -1561,10 +1561,11 @@ void wlan_cfg_set_rxdma1_enable(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx); * is enabled * @cfg: soc configuration context * - * Return: . + * Return: true if enabled, false otherwise. */ -void -wlan_cfg_set_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg, bool val); +bool +wlan_cfg_is_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg); + /** * wlan_cfg_set_delay_mon_replenish() - Set delayed monitor replenish * @cfg: soc configuration context @@ -1572,5 +1573,13 @@ wlan_cfg_set_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg, bool val); * * Return: . */ -bool -wlan_cfg_is_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg); +void +wlan_cfg_set_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg, bool val); + +/** + * wlan_cfg_dp_soc_ctx_dump() - Dump few DP cfg soc parameters + * @cfg: soc configuration context + * + * Return: + */ +void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg);