mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Correct the error handling in event registration
wmi_oem_response_event_id is only defined for TLV based architectures. Current code returns an error if registration to a particular event fails. But registration failure is not wrong for legacy architectures, as event is not defined. So do not check return value for error Change-Id: Ia54431cee2958b59166394360a3fc961abad85ce CRs-Fixed: 2492494
This commit is contained in:
parent
9551ea2d0e
commit
cede8ed032
1 changed files with 4 additions and 5 deletions
|
|
@ -336,15 +336,14 @@ QDF_STATUS target_if_wifi_pos_register_events(struct wlan_objmgr_psoc *psoc)
|
|||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
ret = wmi_unified_register_event_handler(
|
||||
/* wmi_oem_response_event_id is not defined for legacy targets.
|
||||
* So do not check for error for this event.
|
||||
*/
|
||||
wmi_unified_register_event_handler(
|
||||
get_wmi_unified_hdl_from_psoc(psoc),
|
||||
wmi_oem_response_event_id,
|
||||
target_if_wifi_pos_oem_rsp_ev_handler,
|
||||
WMI_RX_WORK_CTX);
|
||||
if (ret) {
|
||||
target_if_err("register_event_handler failed: err %d", ret);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
ret = wmi_unified_register_event_handler(
|
||||
get_wmi_unified_hdl_from_psoc(psoc),
|
||||
|
|
|
|||
Loading…
Reference in a new issue