qcacmn: TWT: Add support for not in range and IE validation fail status code

Add support for TWT AP params not in range and IE validation failed
status code.
Presence of num_additional_twt_params is enough to extract the additional
params sent by the firmware, there is no need for extra status check.

Change-Id: I9fa6afd22aa4de1b2a5b75fa98a00f89768dd8cf
CRs-Fixed: 2890682
This commit is contained in:
Srinivas Girigowda
2021-03-02 22:51:56 -08:00
committed by snandini
parent f5fe106f3f
commit b29d1e9018
2 changed files with 6 additions and 10 deletions

View File

@@ -534,16 +534,6 @@ static QDF_STATUS extract_twt_add_dialog_comp_additional_parameters
ev = param_buf->fixed_param;
/*
* For Alternate values from AP, Firmware sends additional params
* with WMI_HOST_ADD_TWT_STATUS_DENIED
*/
if (ev->status != WMI_HOST_ADD_TWT_STATUS_OK &&
ev->status != WMI_HOST_ADD_TWT_STATUS_DENIED) {
wmi_err("Status of add dialog complete is not success");
return QDF_STATUS_E_INVAL;
}
if (idx >= param_buf->num_twt_params) {
wmi_err("Invalid idx %d while num_twt_params = %d",
idx, param_buf->num_twt_params);