qcacld-3.0: Change return type to QDF_STATUS

Change return type of following APIs from int to QDF_STATUS.
wmi_unified_register_event()
wmi_unified_register_event_handler()
wmi_unified_register_raw_event_handler()
wmi_unified_unregister_event()
wmi_unified_unregister_event_handler()

Change-Id: I534b499edbcfec6eddea0e9ed48f9eb1a2e872c8
CRs-Fixed: 2791275
This commit is contained in:
Gururaj Pandurangi
2020-08-26 16:37:40 -07:00
committed by snandini
parent 6294d90130
commit 02b2ffc7d1
10 changed files with 111 additions and 98 deletions

View File

@@ -178,14 +178,14 @@ target_if_register_mgmt_data_offload_event(struct wlan_objmgr_psoc *psoc)
if (ucfg_pkt_capture_get_mode(psoc) &&
wmi_service_enabled(wmi_handle,
wmi_service_packet_capture_support)) {
uint8_t status;
QDF_STATUS status;
status = wmi_unified_register_event_handler(
wmi_handle,
wmi_mgmt_offload_data_event_id,
target_if_mgmt_offload_data_event_handler,
WMI_RX_WORK_CTX);
if (status) {
if (QDF_IS_STATUS_ERROR(status)) {
pkt_capture_err("Failed to register MGMT offload handler");
return QDF_STATUS_E_FAILURE;
}