Przeglądaj źródła

qcacld-3.0: Do not attempt to print FISA stats when its disabled

Currently the handler which dumps FISA stats, does not
check if the FISA feature has been enabled/disabled via
the INI. Accessing FST table when FISA has been disabled
via INI leads to unexpected assertion.

Fix this by checking if the FISA feature has been enabled
via INI, before accessing the FST table.

Change-Id: I5345138c5af03e3dd777bfe36004c477cff0ab7d
CRs-Fixed: 3249827
Rakesh Pillai 2 lat temu
rodzic
commit
2421447f6d
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      core/dp/txrx3.0/dp_rx_fst.c

+ 7 - 0
core/dp/txrx3.0/dp_rx_fst.c

@@ -37,11 +37,18 @@ void dp_fisa_rx_fst_update_work(void *arg);
 
 
 void dp_rx_dump_fisa_table(struct dp_soc *soc)
 void dp_rx_dump_fisa_table(struct dp_soc *soc)
 {
 {
+	struct wlan_cfg_dp_soc_ctxt *cfg = soc->wlan_cfg_ctx;
 	hal_soc_handle_t hal_soc_hdl = soc->hal_soc;
 	hal_soc_handle_t hal_soc_hdl = soc->hal_soc;
 	struct dp_rx_fst *fst = soc->rx_fst;
 	struct dp_rx_fst *fst = soc->rx_fst;
 	struct dp_fisa_rx_sw_ft *sw_ft_entry;
 	struct dp_fisa_rx_sw_ft *sw_ft_entry;
 	int i;
 	int i;
 
 
+	/* Check if it is enabled in the INI */
+	if (!wlan_cfg_is_rx_fisa_enabled(cfg)) {
+		dp_err("RX FISA feature is disabled");
+		return;
+	}
+
 	if (!fst->fst_in_cmem)
 	if (!fst->fst_in_cmem)
 		return hal_rx_dump_fse_table(soc->rx_fst->hal_rx_fst);
 		return hal_rx_dump_fse_table(soc->rx_fst->hal_rx_fst);