Ver código fonte

qca-wifi: Skip handling CFR HTT event when feature is disabled

When CFR feature is disabled through INI, skip handling of HTT
event indicating the DMA completion of CFR data.

Change-Id: Ia1aafc57866eb11a952cedfbe3a00fec201e0ee0
Padma Raghunathan 5 anos atrás
pai
commit
ca50502493
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      target_if/cfr/src/target_if_cfr_wifi2_0.c

+ 6 - 0
target_if/cfr/src/target_if_cfr_wifi2_0.c

@@ -100,6 +100,12 @@ QDF_STATUS ol_txrx_htt_cfr_rx_ind_handler(void *pdev_ptr,
 		return status;
 	}
 
+	if (wlan_cfr_is_feature_disabled(pdev)) {
+		cfr_err("cfr is disabled");
+		wlan_objmgr_pdev_release_ref(pdev, WLAN_CFR_ID);
+		return QDF_STATUS_E_NOSUPPORT;
+	}
+
 	pa = wlan_objmgr_pdev_get_comp_private_obj(pdev, WLAN_UMAC_COMP_CFR);
 	if (pa == NULL) {
 		cfr_err("pdev_cfr is NULL\n");