Przeglądaj źródła

qca-wifi: Fix error prints in cfr initilization

we are seeing few error prints while registring
TX events per pdev. Ignore double registration
error during pdev init.

Change-Id: I185b1c9178a4632bd14b65314a623efee0597481
CRs-Fixed: 2414456
Vikram Kandukuri 6 lat temu
rodzic
commit
37fbf98811
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      target_if/cfr/src/target_if_cfr_8074v2.c

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

@@ -484,6 +484,12 @@ target_if_register_tx_completion_event_handler(struct wlan_objmgr_psoc *psoc)
 						 wmi_peer_cfr_capture_event_id,
 						 wmi_peer_cfr_capture_event_id,
 						 target_if_peer_capture_event,
 						 target_if_peer_capture_event,
 						 WMI_RX_UMAC_CTX);
 						 WMI_RX_UMAC_CTX);
+	/*
+	 * Event registration is called per pdev
+	 * Ignore erorr if event is alreday registred.
+	 */
+	if (ret == QDF_STATUS_E_FAILURE)
+		ret = QDF_STATUS_SUCCESS;
 
 
 	return ret;
 	return ret;
 }
 }