qcacld-3.0: return status properly to userspace for GET_ML_LINK_STATE

Currently driver is returning the positive error status for
GET_ML_LINK_STATE which is resulting in invalid behavior in the
userspace.

Convert the qdf_status to proper error status and send the status back
to userspace.

Change-Id: Ie18cd74af333e31a9a487ef03ba859bd4ac841b4
CRs-Fixed: 3649117
This commit is contained in:
Arun Kumar Khandavalli
2023-10-31 22:22:24 +05:30
committed by Ravindra Konda
parent f839d48314
commit cf6be391ab

View File

@@ -925,7 +925,9 @@ int wlan_handle_mlo_link_state_operation(struct wiphy *wiphy,
ml_link_op = nla_get_u8(link_oper_attr);
switch (ml_link_op) {
case QCA_WLAN_VENDOR_LINK_STATE_OP_GET:
return wlan_hdd_link_state_request(wiphy, hdd_ctx->psoc, vdev);
status = wlan_hdd_link_state_request(wiphy, hdd_ctx->psoc,
vdev);
return qdf_status_to_os_return(status);
case QCA_WLAN_VENDOR_LINK_STATE_OP_SET:
if (policy_mgr_is_set_link_in_progress(hdd_ctx->psoc)) {
hdd_debug("vdev %d: change link already in progress",