qcacmn: Return error when aoa_caps tlv is NULL
Return error status when FW does not share aoa_caps CRs-Fixed: 3586316 Change-Id: Iea7c49e9332a969286ff612ed8c2b527b9a29c85
This commit is contained in:

committed by
Rahul Choudhary

parent
bdf7db0a32
commit
03f89b0b85
@@ -5738,13 +5738,13 @@ extract_aoa_caps_tlv(struct wmi_unified *wmi_handle, uint8_t *event,
|
||||
|
||||
if (!param_buf->aoa_caps_param) {
|
||||
wmi_debug("NULL aoa_caps_param");
|
||||
return QDF_STATUS_SUCCESS;
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (!param_buf->num_aoa_per_band_caps_param ||
|
||||
!param_buf->aoa_per_band_caps_param) {
|
||||
wmi_debug("No aoa_per_band_caps_param");
|
||||
return QDF_STATUS_SUCCESS;
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
populate_aoa_caps(wmi_handle, aoa_cap, param_buf->aoa_caps_param);
|
||||
|
||||
|
Reference in New Issue
Block a user