qcacmn: Extract additional params from twt add dialog comp evt
Extract additional params obtained from fw as part of WMI_TWT_ADD_DIALOG_COMPLETE_EVENTID during TWT setup Change-Id: Ic58a1da463238a748cbf2678fe0156789ebb3559 CRs-Fixed: 2737036
This commit is contained in:

committed by
snandini

parent
98f996d608
commit
19b1248241
@@ -215,17 +215,55 @@ enum WMI_HOST_ADD_TWT_STATUS {
|
||||
WMI_HOST_ADD_TWT_STATUS_UNKNOWN_ERROR,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_twt_add_dialog_additional_params -
|
||||
* @twt_cmd: TWT command
|
||||
* @bcast: 0 means Individual TWT
|
||||
* 1 means Broadcast TWT
|
||||
* @trig_en: 0 means non-Trigger-enabled TWT
|
||||
* 1 means Trigger-enabled TWT
|
||||
* @announce: 0 means announced TWT
|
||||
* 1 means un-announced TWT
|
||||
* @protection: 0 means TWT protection is required
|
||||
* 1 means TWT protection is not required
|
||||
* @b_twt_id0: 0 means non-0 B-TWT ID or I-TWT
|
||||
* 1 means B-TWT ID 0
|
||||
* @info_frame_disabled: 0 means TWT Information frame is enabled
|
||||
* 1 means TWT Information frame is disabled
|
||||
* @wake_dura_us: wake duration in us
|
||||
* @wake_intvl_us: wake time interval in us
|
||||
* @sp_offset_us: Time until initial TWT SP occurs
|
||||
* @sp_tsf_us_lo: TWT service period tsf in usecs lower bits - 31:0
|
||||
* @sp_tsf_us_hi: TWT service period tsf in usecs higher bits - 63:32
|
||||
*/
|
||||
struct wmi_twt_add_dialog_additional_params {
|
||||
uint32_t twt_cmd:8,
|
||||
bcast:1,
|
||||
trig_en:1,
|
||||
announce:1,
|
||||
protection:1,
|
||||
b_twt_id0:1,
|
||||
info_frame_disabled:1;
|
||||
uint32_t wake_dur_us;
|
||||
uint32_t wake_intvl_us;
|
||||
uint32_t sp_offset_us;
|
||||
uint32_t sp_tsf_us_lo;
|
||||
uint32_t sp_tsf_us_hi;
|
||||
};
|
||||
|
||||
/** struct wmi_twt_add_dialog_complete_param -
|
||||
* @vdev_id: VDEV identifier
|
||||
* @peer_macaddr: Peer mac address
|
||||
* @dialog_id: TWT dialog ID
|
||||
* @status: refer to WMI_HOST_ADD_TWT_STATUS enum
|
||||
* @num_additional_twt_params: no of additional_twt_params available
|
||||
*/
|
||||
struct wmi_twt_add_dialog_complete_event_param {
|
||||
uint32_t vdev_id;
|
||||
uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
|
||||
uint32_t dialog_id;
|
||||
uint32_t status;
|
||||
uint32_t num_additional_twt_params;
|
||||
};
|
||||
|
||||
/** struct wmi_twt_del_dialog_param -
|
||||
|
Reference in New Issue
Block a user