qcacld-3.0: Add support for twt get_status with dialog_id 0

Currently, if there is no twt session present as part
of the twt get_status query with dialog_id = 0, host
returns failure.

Add support to include the session state, wake_duartion
and wake_interval for TWT get_status command with dialog_id = 0.

Change-Id: Ie59310dc07c9954da96cee6568de856be8f67652
CRs-Fixed: 2989788
This commit is contained in:
Deeksha Gupta 2021-07-13 09:50:26 +05:30 • committed by Gerrit - the friendly Code Review server
commit 08c4d36014

View file

@ -759,9 +759,13 @@ hdd_send_inactive_session_reply(struct hdd_adapter *adapter,
struct wmi_host_twt_session_stats_info *params)
{
QDF_STATUS qdf_status;
int num_twt_session = 0;
params[0].event_type = HOST_TWT_SESSION_UPDATE;
qdf_status = hdd_twt_pack_get_params_resp(adapter->hdd_ctx, params, 0);
params[num_twt_session].event_type = HOST_TWT_SESSION_UPDATE;
num_twt_session++;
qdf_status = hdd_twt_pack_get_params_resp(adapter->hdd_ctx, params,
num_twt_session);
return qdf_status;
}
@ -920,8 +924,7 @@ static int hdd_sta_twt_get_session_params(struct hdd_adapter *adapter,
QDF_MAC_ADDR_SIZE);
}
if (params[0].dialog_id != WLAN_ALL_SESSIONS_DIALOG_ID &&
!ucfg_mlme_is_twt_setup_done(adapter->hdd_ctx->psoc,
if (!ucfg_mlme_is_twt_setup_done(adapter->hdd_ctx->psoc,
&hdd_sta_ctx->conn_info.bssid,
params[0].dialog_id)) {
hdd_debug("vdev%d: TWT session %d setup incomplete",