|
@@ -3171,19 +3171,19 @@ extract_roam_pmkid_request_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
|
|
|
|
|
|
if (!evt_buf || !len) {
|
|
|
wmi_err("received null event from target");
|
|
|
- return -EINVAL;
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
param_buf = (WMI_ROAM_PMKID_REQUEST_EVENTID_param_tlvs *)evt_buf;
|
|
|
if (!param_buf) {
|
|
|
wmi_err("received null buf from target");
|
|
|
- return -EINVAL;
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
roam_pmkid_req_ev = param_buf->fixed_param;
|
|
|
if (!roam_pmkid_req_ev) {
|
|
|
wmi_err("received null event data from target");
|
|
|
- return -EINVAL;
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
if (roam_pmkid_req_ev->vdev_id >= WLAN_MAX_VDEVS) {
|
|
@@ -3195,20 +3195,20 @@ extract_roam_pmkid_request_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
|
|
|
if (num_entries > MAX_RSSI_AVOID_BSSID_LIST) {
|
|
|
wmi_err("num bssid entries:%d exceeds maximum value",
|
|
|
num_entries);
|
|
|
- return -EINVAL;
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
src_list = param_buf->pmkid_request;
|
|
|
if (len < (sizeof(*roam_pmkid_req_ev) +
|
|
|
(num_entries * sizeof(*src_list)))) {
|
|
|
wmi_err("Invalid length: %d", len);
|
|
|
- return -EINVAL;
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
dst_list = qdf_mem_malloc(sizeof(struct roam_pmkid_req_event) +
|
|
|
(sizeof(struct qdf_mac_addr) * num_entries));
|
|
|
if (!dst_list)
|
|
|
- return -ENOMEM;
|
|
|
+ return QDF_STATUS_E_NOMEM;
|
|
|
|
|
|
dst_list->vdev_id = roam_pmkid_req_ev->vdev_id;
|
|
|
|
|
@@ -3221,7 +3221,7 @@ extract_roam_pmkid_request_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
|
|
|
qdf_is_macaddr_group(roam_bsslist)) {
|
|
|
wmi_err("Invalid bssid");
|
|
|
qdf_mem_free(dst_list);
|
|
|
- return -EINVAL;
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
wmi_debug("Received pmkid fallback for bssid: " QDF_MAC_ADDR_FMT" vdev_id:%d",
|
|
|
QDF_MAC_ADDR_REF(roam_bsslist->bytes),
|