qcacmn: Add support to handle twt notify event

Add support to handle twt notify event from firmware.

Change-Id: Ia4a84b0f3cfb76401681707c08e8169d07dacdbd
CRs-Fixed: 2847179
This commit is contained in:
Rajasekaran Kalidoss
2020-12-19 15:41:40 +05:30
committed by snandini
parent d384cff416
commit d7ec7b4010
7 changed files with 68 additions and 5 deletions

View File

@@ -738,6 +738,28 @@ static QDF_STATUS extract_twt_resume_dialog_comp_event_tlv(
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS extract_twt_notify_event_tlv(
wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct wmi_twt_notify_event_param *params)
{
WMI_TWT_NOTIFY_EVENTID_param_tlvs *param_buf;
wmi_twt_notify_event_fixed_param *ev;
param_buf =
(WMI_TWT_NOTIFY_EVENTID_param_tlvs *)evt_buf;
if (!param_buf) {
wmi_err("evt_buf is NULL");
return QDF_STATUS_E_INVAL;
}
ev = param_buf->fixed_param;
params->vdev_id = ev->vdev_id;
return QDF_STATUS_SUCCESS;
}
#ifdef WLAN_SUPPORT_BCAST_TWT
static QDF_STATUS
extract_twt_btwt_invite_sta_comp_event_tlv(
@@ -933,6 +955,7 @@ void wmi_twt_attach_tlv(wmi_unified_t wmi_handle)
extract_twt_session_stats_event_tlv;
ops->extract_twt_session_stats_data =
extract_twt_session_stats_event_data;
ops->extract_twt_notify_event =
extract_twt_notify_event_tlv;
wmi_twt_attach_bcast_twt_tlv(ops);
}