qcacld-3.0: Don't send success status to user space

Currently, If AP doesn't allow Prohibit to be set and user tries
to enable prohibit, host doesn't send command to FW to enable prohibit
but doesn't send failure status to user space.

Fix is to send failure status to userspace in case prohibit is not enabled.

Change-Id: Ic983b85d27e16314f63c02f88d3b1689d587d622
CRs-Fixed: 3344607
This commit is contained in:
Sheenam Monga
2022-11-28 12:31:51 +05:30
committed by Madan Koyyalamudi
parent 74652004c5
commit f6de97d19c
3 changed files with 27 additions and 9 deletions

View File

@@ -90,10 +90,11 @@ void ucfg_spatial_reuse_set_sr_enable(struct wlan_objmgr_vdev *vdev,
wlan_vdev_mlme_set_he_spr_enabled(vdev, enable);
}
void ucfg_spatial_reuse_send_sr_prohibit(struct wlan_objmgr_vdev *vdev,
bool enable_he_siga_val15_prohibit)
QDF_STATUS ucfg_spatial_reuse_send_sr_prohibit(
struct wlan_objmgr_vdev *vdev,
bool enable_he_siga_val15_prohibit)
{
QDF_STATUS status;
QDF_STATUS status = QDF_STATUS_SUCCESS;
bool sr_enabled = wlan_vdev_mlme_get_he_spr_enabled(vdev);
bool sr_prohibited = wlan_vdev_mlme_is_sr_prohibit_en(vdev);
uint8_t sr_ctrl = wlan_vdev_mlme_get_sr_ctrl(vdev);
@@ -111,7 +112,15 @@ void ucfg_spatial_reuse_send_sr_prohibit(struct wlan_objmgr_vdev *vdev,
wlan_vdev_mlme_set_sr_prohibit_en
(vdev,
enable_he_siga_val15_prohibit);
} else {
mlme_debug("Prohibit command can not be sent sr_enabled %d, sr_ctrl %d , sr_prohibited %d",
sr_enabled,
sr_ctrl,
sr_prohibited);
return QDF_STATUS_E_FAILURE;
}
return status;
}
QDF_STATUS