qcacmn: Add additional fields in wmi_twt_session_stats_info

Add below new fields in wmi_twt_session_stats_info required
for twt_session parameters and extract them.
protection flag, info_frame_disabled flag,
sp_tsf_us_lo & sp_tsf_us_hi

Change-Id: I3ca7fe44a1363c07d3a7db98086c66a1b7859eac
CRs-Fixed: 2730748
This commit is contained in:
Visweswara Tanuku
2020-08-01 20:05:20 +05:30
committed by snandini
parent 5ba7078b27
commit fbe384b6ac
2 changed files with 21 additions and 8 deletions

View File

@@ -734,10 +734,15 @@ extract_twt_session_stats_event_data(wmi_unified_t wmi_handle,
session->bcast = WMI_TWT_SESSION_FLAG_BCAST_TWT_GET(flags);
session->trig = WMI_TWT_SESSION_FLAG_TRIGGER_TWT_GET(flags);
session->announ = WMI_TWT_SESSION_FLAG_ANNOUN_TWT_GET(flags);
session->protection = WMI_TWT_SESSION_FLAG_TWT_PROTECTION_GET(flags);
session->info_frame_disabled =
WMI_TWT_SESSION_FLAG_TWT_INFO_FRAME_DISABLED_GET(flags);
session->dialog_id = twt_session->dialog_id;
session->wake_dura_us = twt_session->wake_dura_us;
session->wake_intvl_us = twt_session->wake_intvl_us;
session->sp_offset_us = twt_session->sp_offset_us;
session->sp_tsf_us_lo = twt_session->sp_tsf_us_lo;
session->sp_tsf_us_hi = twt_session->sp_tsf_us_hi;
WMI_LOGD("type=%d,id=%d,bcast=%d,trig=%d",
session->event_type, session->flow_id,
session->bcast, session->trig);