Browse Source

qcacmn: Removing error value return on event registration failure

WMI_SPECTRAL_CAPABILITIES_EVENTID registration returns QDF_STATUS_E_FAILURE
on failure which is not required as it is causing crash on failure where
event registration is failing i.e., Hawkeye + Swift

Change-Id: Id11d76941b12d0ee249d8f6e86612b351b732d78
CRs-Fixed: 3255827
Naveen S 2 years ago
parent
commit
e86fc7ebe9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      target_if/spectral/target_if_spectral.c

+ 1 - 3
target_if/spectral/target_if_spectral.c

@@ -7862,10 +7862,8 @@ target_if_spectral_register_events(struct wlan_objmgr_psoc *psoc)
 			wmi_spectral_capabilities_eventid,
 			target_if_spectral_capabilities_event_handler,
 			WMI_RX_UMAC_CTX);
-	if (ret) {
+	if (ret)
 		spectral_debug("event handler not supported, ret=%d", ret);
-		return QDF_STATUS_E_FAILURE;
-	}
 
 	return QDF_STATUS_SUCCESS;
 }