xref: /wlan-dirver/qca-wifi-host-cmn/wmi/inc/wmi_unified_twt_param.h (revision f28396d060cff5c6519f883cb28ae0116ce479f1)
1 /*
2  * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 /*
20  * This file contains the API definitions for the TWT WMI APIs.
21  */
22 
23 #ifndef _WMI_UNIFIED_TWT_PARAM_H_
24 #define _WMI_UNIFIED_TWT_PARAM_H_
25 
26 /**
27  * @pdev_id: pdev_id for identifying the MAC.
28  * @sta_cong_timer_ms: STA TWT congestion timer TO value in terms of ms
29  * @mbss_support: Flag indicating if AP TWT feature supported in
30  *                MBSS mode or not.
31  * @default_slot_size: This is the default value for the TWT slot setup
32  *                by AP (units = microseconds)
33  * @congestion_thresh_setup: Minimum congestion required to start setting
34  *                up TWT sessions
35  * @congestion_thresh_teardown: Minimum congestion below which TWT will be
36  *                torn down (in percent of occupied airtime)
37  * @congestion_thresh_critical: Threshold above which TWT will not be active
38  *                (in percent of occupied airtime)
39  * @interference_thresh_teardown: Minimum interference above that TWT
40  *                 will not be active. The interference parameters use an
41  *                 abstract method of evaluating interference.
42  *                 The parameters are in percent, ranging from 0 for no
43  *                 interference, to 100 for interference extreme enough
44  *                 to completely block the signal of interest.
45  * @interference_thresh_setup: Minimum interference below that TWT session
46  *                 can be setup. The interference parameters use an
47  *                 abstract method of evaluating interference.
48  *                 The parameters are in percent, ranging from 0 for no
49  *                 interference, to 100 for interference extreme enough
50  *                 to completely block the signal of interest.
51  * @min_no_sta_setup: Minimum no of STA required to start TWT setup
52  * @min_no_sta_teardown: Minimum no of STA below which TWT will be torn down
53  * @no_of_bcast_mcast_slots: Number of default slot sizes reserved for
54  *                 BCAST/MCAST delivery
55  * @min_no_twt_slots: Minimum no of available slots for TWT to be operational
56  * @max_no_sta_twt: Max no of STA with which TWT is possible
57  *                 (must be <= the wmi_resource_config's twt_ap_sta_count value)
58  *      * The below interval parameters have units of milliseconds.
59  * @mode_check_interval: Interval between two successive check to decide the
60  *                 mode of TWT. (units = milliseconds)
61  * @add_sta_slot_interval: Interval between decisions making to create
62  *                 TWT slots for STAs. (units = milliseconds)
63  * @remove_sta_slot_interval: Inrerval between decisions making to remove TWT
64  *                 slot of STAs. (units = milliseconds)
65  * @flags: Flag to enable or disable capabilities, example bcast twt.
66  */
67 struct wmi_twt_enable_param {
68 	uint32_t pdev_id;
69 	uint32_t sta_cong_timer_ms;
70 	uint32_t mbss_support;
71 	uint32_t default_slot_size;
72 	uint32_t congestion_thresh_setup;
73 	uint32_t congestion_thresh_teardown;
74 	uint32_t congestion_thresh_critical;
75 	uint32_t interference_thresh_teardown;
76 	uint32_t interference_thresh_setup;
77 	uint32_t min_no_sta_setup;
78 	uint32_t min_no_sta_teardown;
79 	uint32_t no_of_bcast_mcast_slots;
80 	uint32_t min_no_twt_slots;
81 	uint32_t max_no_sta_twt;
82 	uint32_t mode_check_interval;
83 	uint32_t add_sta_slot_interval;
84 	uint32_t remove_sta_slot_interval;
85 	uint32_t flags;
86 };
87 
88 /* status code of enabling TWT
89  * WMI_ENABLE_TWT_STATUS_OK: enabling TWT successfully completed
90  * WMI_ENABLE_TWT_STATUS_ALREADY_ENABLED: TWT already enabled
91  * WMI_ENABLE_TWT_STATUS_NOT_READY: FW not ready for enabling TWT
92  * WMI_ENABLE_TWT_INVALID_PARAM: invalid parameters
93  * WMI_ENABLE_TWT_STATUS_UNKNOWN_ERROR: enabling TWT failed with an
94  *                                      unknown reason
95  */
96 enum WMI_HOST_ENABLE_TWT_STATUS {
97 	WMI_HOST_ENABLE_TWT_STATUS_OK,
98 	WMI_HOST_ENABLE_TWT_STATUS_ALREADY_ENABLED,
99 	WMI_HOST_ENABLE_TWT_STATUS_NOT_READY,
100 	WMI_HOST_ENABLE_TWT_INVALID_PARAM,
101 	WMI_HOST_ENABLE_TWT_STATUS_UNKNOWN_ERROR,
102 };
103 
104 /** struct wmi_twt_enable_complete_event_param:
105  * @pdev_is: pdev_id for identifying the MAC.
106  * @status: From enum WMI_HOST_ENABLE_TWT_STATUS
107  */
108 struct wmi_twt_enable_complete_event_param {
109 	uint32_t pdev_id;
110 	uint32_t status;
111 };
112 
113 /** struct wmi_twt_disable_param:
114  * @pdev_id: pdev_id for identifying the MAC.
115  */
116 struct wmi_twt_disable_param {
117 	uint32_t pdev_id;
118 };
119 
120 /** struct wmi_twt_disable_complete_event:
121  * @pdev_id: pdev_id for identifying the MAC.
122  */
123 struct wmi_twt_disable_complete_event {
124 	uint32_t pdev_id;
125 };
126 
127 /* from IEEE 802.11ah section 9.4.2.200 */
128 enum WMI_HOST_TWT_COMMAND {
129 	WMI_HOST_TWT_COMMAND_REQUEST_TWT    = 0,
130 	WMI_HOST_TWT_COMMAND_SUGGEST_TWT    = 1,
131 	WMI_HOST_TWT_COMMAND_DEMAND_TWT     = 2,
132 	WMI_HOST_TWT_COMMAND_TWT_GROUPING   = 3,
133 	WMI_HOST_TWT_COMMAND_ACCEPT_TWT     = 4,
134 	WMI_HOST_TWT_COMMAND_ALTERNATE_TWT  = 5,
135 	WMI_HOST_TWT_COMMAND_DICTATE_TWT    = 6,
136 	WMI_HOST_TWT_COMMAND_REJECT_TWT     = 7,
137 };
138 
139 /** struct wmi_twt_add_dialog_param -
140  * @vdev_id: VDEV identifier
141  * @peer_macaddr: peer MAC address when vdev is AP VDEV
142  * @dialog_id: diaglog_id (TWT dialog ID)
143  *             This dialog ID must be unique within its vdev.
144  * @wake_intvl_us: TWT Wake Interval in units of us
145  * @wake_intvl_mantis: TWT Wake Interval Mantissa
146  *                 - wake_intvl_mantis must be <= 0xFFFF
147  *                 - wake_intvl_us must be divided evenly by wake_intvl_mantis,
148  *                   i.e., wake_intvl_us % wake_intvl_mantis == 0
149  *                 - the quotient of wake_intvl_us/wake_intvl_mantis must be
150  *                   2 to N-th(0<=N<=31) power,
151  *                   i.e., wake_intvl_us/wake_intvl_mantis == 2^N, 0<=N<=31
152  * @wake_dura_us: TWT Wake Duration in units of us, must be <= 0xFFFF
153  *                wake_dura_us must be divided evenly by 256,
154  *                i.e., wake_dura_us % 256 == 0
155  * @sp_offset_us: this long time after TWT setup the 1st SP will start.
156  * @twt_cmd: cmd from enum WMI_HOST_TWT_COMMAND
157  * @flag_bcast: 0 means Individual TWT,
158  *              1 means Broadcast TWT
159  * @flag_trigger: 0 means non-Trigger-enabled TWT,
160  *                1 means  means Trigger-enabled TWT
161  * @flag_flow_type:  0 means announced TWT,
162  *                   1 means un-announced TWT
163  * @flag_protection: 0 means TWT protection is required,
164  *                   1 means TWT protection is not required
165  * @b_twt_id0: 0 means BTWT recommendation will not be used
166  *             1 means BTWT recommendation will be used
167  * @flag_reserved: unused bits
168  * @b_twt_recommendation: defines types of frames tx during bTWT SP
169  * @b_twt_persistence: Countdown VAL frames to param update/teardown
170  */
171 struct wmi_twt_add_dialog_param {
172 	uint32_t vdev_id;
173 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
174 	uint32_t dialog_id;
175 	uint32_t wake_intvl_us;
176 	uint32_t wake_intvl_mantis;
177 	uint32_t wake_dura_us;
178 	uint32_t sp_offset_us;
179 	enum WMI_HOST_TWT_COMMAND twt_cmd;
180 	uint32_t
181 		flag_bcast:1,
182 		flag_trigger:1,
183 		flag_flow_type:1,
184 		flag_protection:1,
185 		flag_b_twt_id0:1,
186 		flag_reserved:11,
187 		b_twt_persistence:8,
188 		b_twt_recommendation:3;
189 };
190 
191 /* enum - status code of adding TWT dialog
192  * WMI_HOST_ADD_TWT_STATUS_OK: adding TWT dialog successfully completed
193  * WMI_HOST_ADD_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
194  * WMI_HOST_ADD_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
195  * WMI_HOST_ADD_TWT_STATUS_INVALID_PARAM: invalid parameters
196  * WMI_HOST_ADD_TWT_STATUS_NOT_READY: FW not ready
197  * WMI_HOST_ADD_TWT_STATUS_NO_RESOURCE: FW resource exhausted
198  * WMI_HOST_ADD_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
199  *                                 request/response frame
200  * WMI_HOST_ADD_TWT_STATUS_NO_RESPONSE: peer AP did not send the response frame
201  * WMI_HOST_ADD_TWT_STATUS_DENIED: AP did not accept the request
202  * WMI_HOST_ADD_TWT_STATUS_UNKNOWN_ERROR: adding TWT dialog failed with
203  *                                 an unknown reason
204  */
205 enum WMI_HOST_ADD_TWT_STATUS {
206 	WMI_HOST_ADD_TWT_STATUS_OK,
207 	WMI_HOST_ADD_TWT_STATUS_TWT_NOT_ENABLED,
208 	WMI_HOST_ADD_TWT_STATUS_USED_DIALOG_ID,
209 	WMI_HOST_ADD_TWT_STATUS_INVALID_PARAM,
210 	WMI_HOST_ADD_TWT_STATUS_NOT_READY,
211 	WMI_HOST_ADD_TWT_STATUS_NO_RESOURCE,
212 	WMI_HOST_ADD_TWT_STATUS_NO_ACK,
213 	WMI_HOST_ADD_TWT_STATUS_NO_RESPONSE,
214 	WMI_HOST_ADD_TWT_STATUS_DENIED,
215 	WMI_HOST_ADD_TWT_STATUS_UNKNOWN_ERROR,
216 };
217 
218 /** struct wmi_twt_add_dialog_complete_param -
219  * @vdev_id: VDEV identifier
220  * @peer_macaddr: Peer mac address
221  * @dialog_id: TWT dialog ID
222  * @status: refer to WMI_HOST_ADD_TWT_STATUS enum
223  */
224 struct wmi_twt_add_dialog_complete_event_param {
225 	uint32_t vdev_id;
226 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
227 	uint32_t dialog_id;
228 	uint32_t status;
229 };
230 
231 /** struct wmi_twt_del_dialog_param -
232  * @vdev_id: VDEV identifier
233  * @peer_macaddr: Peer mac address
234  * @dialog_id: TWT dialog ID
235  * @b_twt_persistence: persistence val for b-twt
236  */
237 struct wmi_twt_del_dialog_param {
238 	uint32_t vdev_id;
239 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
240 	uint32_t dialog_id;
241 #ifdef WLAN_SUPPORT_BCAST_TWT
242 	uint32_t b_twt_persistence;
243 #endif
244 };
245 
246 /* status code of deleting TWT dialog
247  * WMI_HOST_DEL_TWT_STATUS_OK: deleting TWT dialog successfully completed
248  * WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
249  * WMI_HOST_DEL_TWT_STATUS_INVALID_PARAM: invalid parameters
250  * WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
251  *                                    this dialog
252  * WMI_HOST_DEL_TWT_STATUS_NO_RESOURCE: FW resource exhausted
253  * WMI_HOST_DEL_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the request/response
254  *                            frame
255  * WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR: deleting TWT dialog failed with an
256  *                            unknown reason
257  */
258 enum WMI_HOST_DEL_TWT_STATUS {
259 	WMI_HOST_DEL_TWT_STATUS_OK,
260 	WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST,
261 	WMI_HOST_DEL_TWT_STATUS_INVALID_PARAM,
262 	WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_BUSY,
263 	WMI_HOST_DEL_TWT_STATUS_NO_RESOURCE,
264 	WMI_HOST_DEL_TWT_STATUS_NO_ACK,
265 	WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR,
266 };
267 
268 /** struct wmi_twt_del_dialog_complete_event_param -
269  * @vdev_id: VDEV identifier
270  * @peer_macaddr: Peer mac address
271  * @dialog_id: TWT dialog ID
272  * @b_twt_persistence: persistence val for b-twt
273  * @status: refer to WMI_HOST_DEL_TWT_STATUS enum
274  */
275 struct wmi_twt_del_dialog_complete_event_param {
276 	uint32_t vdev_id;
277 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
278 	uint32_t dialog_id;
279 #ifdef WLAN_SUPPORT_BCAST_TWT
280 	uint32_t b_twt_persistence;
281 #endif
282 	uint32_t status;
283 };
284 
285 /** struct wmi_twt_pause_dialog_cmd_param -
286  * @vdev_id: VDEV identifier
287  * @peer_macaddr: Peer mac address
288  * @dialog_id: TWT dialog ID
289  */
290 struct wmi_twt_pause_dialog_cmd_param {
291 	uint32_t vdev_id;
292 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
293 	uint32_t dialog_id;
294 };
295 
296 /* enum WMI_HOST_PAUSE_TWT_STATUS - status code of pausing TWT dialog
297  * WMI_HOST_PAUSE_TWT_STATUS_OK: pausing TWT dialog successfully completed
298  * WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
299  * WMI_HOST_PAUSE_TWT_STATUS_INVALID_PARAM: invalid parameters
300  * WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
301  *                          this dialog
302  * WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE: FW resource exhausted
303  * WMI_HOST_PAUSE_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
304  *                          request/response frame
305  * WMI_HOST_PAUSE_TWT_STATUS_UNKNOWN_ERROR: pausing TWT dialog failed with an
306  *                          unknown reason
307  */
308 enum WMI_HOST_PAUSE_TWT_STATUS {
309 	WMI_HOST_PAUSE_TWT_STATUS_OK,
310 	WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST,
311 	WMI_HOST_PAUSE_TWT_STATUS_INVALID_PARAM,
312 	WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY,
313 	WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE,
314 	WMI_HOST_PAUSE_TWT_STATUS_NO_ACK,
315 	WMI_HOST_PAUSE_TWT_STATUS_UNKNOWN_ERROR,
316 };
317 
318 /** struct wmi_twt_pause_dialog_complete_event_param -
319  * @vdev_id: VDEV identifier
320  * @peer_macaddr: Peer mac address
321  * @dialog_id: TWT dialog ID
322  * @status: refer to WMI_HOST_PAUSE_TWT_STATUS
323  */
324 struct wmi_twt_pause_dialog_complete_event_param {
325 	uint32_t vdev_id;
326 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
327 	uint32_t dialog_id;
328 	uint32_t status;
329 };
330 
331 /** struct wmi_twt_resume_dialog_cmd_param -
332  * @vdev_id: VDEV identifier
333  * @peer_macaddr: Peer mac address
334  * @dialog_id: TWT dialog ID
335  * @sp_offset_us: this long time after TWT resumed the 1st SP will start
336  * @next_twt_size: Next TWT subfield Size.
337  *                 Refer IEEE 802.11ax section "9.4.1.60 TWT Information field"
338  */
339 struct wmi_twt_resume_dialog_cmd_param {
340 	uint32_t vdev_id;
341 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
342 	uint32_t dialog_id;
343 	uint32_t sp_offset_us;
344 	uint32_t next_twt_size;
345 };
346 
347 /* enum WMI_HOST_RESUME_TWT_STATUS - status code of resuming TWT dialog
348  * WMI_HOST_RESUME_TWT_STATUS_OK: resuming TWT dialog successfully completed
349  * WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
350  * WMI_HOST_RESUME_TWT_STATUS_INVALID_PARAM: invalid parameters
351  * WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
352  *                            this dialog
353  * WMI_HOST_RESUME_TWT_STATUS_NOT_PAUSED: dialog not paused currently
354  * WMI_HOST_RESUME_TWT_STATUS_NO_RESOURCE: FW resource exhausted
355  * WMI_HOST_RESUME_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
356  *                            request/response frame
357  * WMI_HOST_RESUME_TWT_STATUS_UNKNOWN_ERROR: resuming TWT dialog failed with an
358  *                            unknown reason
359  */
360 enum WMI_HOST_RESUME_TWT_STATUS {
361 	WMI_HOST_RESUME_TWT_STATUS_OK,
362 	WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST,
363 	WMI_HOST_RESUME_TWT_STATUS_INVALID_PARAM,
364 	WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_BUSY,
365 	WMI_HOST_RESUME_TWT_STATUS_NOT_PAUSED,
366 	WMI_HOST_RESUME_TWT_STATUS_NO_RESOURCE,
367 	WMI_HOST_RESUME_TWT_STATUS_NO_ACK,
368 	WMI_HOST_RESUME_TWT_STATUS_UNKNOWN_ERROR,
369 };
370 
371 /** struct wmi_twt_resume_dialog_complete_event_param -
372  * @vdev_id: VDEV identifier
373  * @peer_macaddr: Peer mac address
374  * @dialog_id: TWT dialog ID
375  * @status: refer to WMI_HOST_RESUME_TWT_STATUS
376  */
377 struct wmi_twt_resume_dialog_complete_event_param {
378 	uint32_t vdev_id;
379 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
380 	uint32_t dialog_id;
381 	uint32_t status;
382 };
383 
384 #ifdef WLAN_SUPPORT_BCAST_TWT
385 /** struct wmi_twt_btwt_invite_sta_cmd_param -
386  * @vdev_id: VDEV identifier
387  * @peer_macaddr: Peer mac address
388  * @dialog_id: TWT dialog ID
389  */
390 struct wmi_twt_btwt_invite_sta_cmd_param {
391 	uint32_t vdev_id;
392 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
393 	uint32_t dialog_id;
394 };
395 
396 /* enum WMI_HOST_INVITATION_TWT_BTWT_STATUS - status code of TWT Invitation
397  *                              dialog
398  * WMI_HOST_INVITATION_TWT_BTWT_STATUS_OK: BTWT invitation successfully
399  *                              completed
400  * WMI_HOST_INVITATION_TWT_TWT_STATUS_DIALOG_ID_NOT_EXIST: BTWT dialog ID not
401  *                              exists
402  * WMI_HOST_INVITATION_TWT_BTWT_STATUS_INVALID_PARAM: invalid parameters
403  * WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_BUSY: FW is in the process of
404  *                              handling this dialog
405  * WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_RESOURCE: FW resource exhausted
406  * WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_ACK: peer AP/STA did not ACK the
407  *                              request/response frame
408  * WMI_HOST_INVITATION_TWT_BTWT_STATUS_UNKNOWN_ERROR: BTWT invitation failed
409  *                              with an unknown reason
410  */
411 enum WMI_HOST_INVITATION_TWT_BTWT_STATUS {
412 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_OK,
413 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST,
414 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_INVALID_PARAM,
415 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_BUSY,
416 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_RESOURCE,
417 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_ACK,
418 	WMI_HOST_INVITATION_TWT_BTWT_STATUS_UNKNOWN_ERROR,
419 };
420 
421 /** struct wmi_twt_btwt_invite_sta_complete_event_param -
422  * @vdev_id: VDEV identifier
423  * @peer_macaddr: Peer mac address
424  * @dialog_id: BTWT dialog ID
425  * @status: refer to WMI_HOST_INVITATION_TWT_BTWT_STATUS
426  */
427 struct wmi_twt_btwt_invite_sta_complete_event_param {
428 		uint32_t vdev_id;
429 		uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
430 		uint32_t dialog_id;
431 		uint32_t status;
432 };
433 
434 /** struct wmi_twt_btwt_remove_sta_cmd_param -
435  * @vdev_id: VDEV identifier
436  * @peer_macaddr: Peer mac address
437  * @dialog_id: BTWT dialog ID
438  */
439 struct wmi_twt_btwt_remove_sta_cmd_param {
440 		uint32_t vdev_id;
441 		uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
442 		uint32_t dialog_id;
443 };
444 
445 /* enum WMI_HOST_KICKOFF_TWT_BTWT_STATUS - status code of resuming TWT dialog
446  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_OK: TWT kickoff successfully completed
447  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST: BTWT dialog ID not
448  *                              exists
449  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_INVALID_PARAM: invalid parameters
450  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_BUSY: FW is in the process of
451  *                              handling this dialog
452  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NOT_PAUSED: Dialog not currently paused
453  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_RESOURCE: FW resource exhausted
454  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_ACK: peer AP/STA did not ACK the
455  *                              request/response frame
456  * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_UNKNOWN_ERROR: BTWT kickoff failed with an
457  *                              unknown reason
458  */
459 enum WMI_HOST_KICKOFF_TWT_BTWT_STATUS {
460 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_OK,
461 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST,
462 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_INVALID_PARAM,
463 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_BUSY,
464 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NOT_PAUSED,
465 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_RESOURCE,
466 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_ACK,
467 	WMI_HOST_KICKOFF_TWT_BTWT_STATUS_UNKNOWN_ERROR,
468 };
469 
470 /** struct wmi_twt_btwt_remove_sta_complete_event_param -
471  * @vdev_id: VDEV identifier
472  * @peer_macaddr: Peer mac address
473  * @dialog_id: BTWT dialog ID
474  * @status: refer to WMI_HOST_KICKOFF_TWT_BTWT_STATUS
475  */
476 struct wmi_twt_btwt_remove_sta_complete_event_param {
477 	uint32_t vdev_id;
478 	uint8_t  peer_macaddr[QDF_MAC_ADDR_SIZE];
479 	uint32_t dialog_id;
480 	uint32_t status;
481 };
482 #endif
483 
484 #endif /* _WMI_UNIFIED_TWT_PARAM_H_ */
485