wmi_unified_twt_param.h 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. /*
  2. * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /*
  20. * This file contains the API definitions for the TWT WMI APIs.
  21. */
  22. #ifndef _WMI_UNIFIED_TWT_PARAM_H_
  23. #define _WMI_UNIFIED_TWT_PARAM_H_
  24. /**
  25. * enum WMI_TWT_ROLE - role specified in ext conf in wmi_twt_enable/disable_cmd
  26. * @WMI_TWT_ROLE_REQUESTOR: TWT role is requestor
  27. * @WMI_TWT_ROLE_RESPONDER: TWT role is responder
  28. */
  29. enum WMI_TWT_ROLE {
  30. WMI_TWT_ROLE_REQUESTOR,
  31. WMI_TWT_ROLE_RESPONDER,
  32. };
  33. /**
  34. * enum WMI_TWT_OPERATION - specified in ext conf in wmi_twt_enable/disable_cmd
  35. * @WMI_TWT_OPERATION_INDIVIDUAL: Individual TWT operation
  36. * @WMI_TWT_OPERATION_BROADCAST: Broadcast TWT operation
  37. */
  38. enum WMI_TWT_OPERATION {
  39. WMI_TWT_OPERATION_INDIVIDUAL,
  40. WMI_TWT_OPERATION_BROADCAST,
  41. };
  42. /**
  43. * struct wmi_twt_enable_param - TWT Enable parameters
  44. * @pdev_id: pdev_id for identifying the MAC.
  45. * @sta_cong_timer_ms: STA TWT congestion timer TO value in terms of ms
  46. * @mbss_support: Flag indicating if AP TWT feature supported in
  47. * MBSS mode or not.
  48. * @default_slot_size: This is the default value for the TWT slot setup
  49. * by AP (units = microseconds)
  50. * @congestion_thresh_setup: Minimum congestion required to start setting
  51. * up TWT sessions
  52. * @congestion_thresh_teardown: Minimum congestion below which TWT will be
  53. * torn down (in percent of occupied airtime)
  54. * @congestion_thresh_critical: Threshold above which TWT will not be active
  55. * (in percent of occupied airtime)
  56. * @interference_thresh_teardown: Minimum interference above that TWT
  57. * will not be active. The interference parameters use an
  58. * abstract method of evaluating interference.
  59. * The parameters are in percent, ranging from 0 for no
  60. * interference, to 100 for interference extreme enough
  61. * to completely block the signal of interest.
  62. * @interference_thresh_setup: Minimum interference below that TWT session
  63. * can be setup. The interference parameters use an
  64. * abstract method of evaluating interference.
  65. * The parameters are in percent, ranging from 0 for no
  66. * interference, to 100 for interference extreme enough
  67. * to completely block the signal of interest.
  68. * @min_no_sta_setup: Minimum no of STA required to start TWT setup
  69. * @min_no_sta_teardown: Minimum no of STA below which TWT will be torn down
  70. * @no_of_bcast_mcast_slots: Number of default slot sizes reserved for
  71. * BCAST/MCAST delivery
  72. * @min_no_twt_slots: Minimum no of available slots for TWT to be operational
  73. * @max_no_sta_twt: Max no of STA with which TWT is possible
  74. * (must be <= the wmi_resource_config's twt_ap_sta_count value)
  75. * * The below interval parameters have units of milliseconds.
  76. * @mode_check_interval: Interval between two successive check to decide the
  77. * mode of TWT. (units = milliseconds)
  78. * @add_sta_slot_interval: Interval between decisions making to create
  79. * TWT slots for STAs. (units = milliseconds)
  80. * @remove_sta_slot_interval: Inrerval between decisions making to remove TWT
  81. * slot of STAs. (units = milliseconds)
  82. * @twt_role: values from enum WMI_TWT_ROLE.
  83. * @twt_oper: values from enum WMI_TWT_OPERATION.
  84. * @ext_conf_present: If requestor/responder extend config is present.
  85. * @b_twt_enable: Enable or disable broadcast TWT.
  86. * @b_twt_legacy_mbss_enable: Enable or disable legacy MBSSID TWT.
  87. * @b_twt_ax_mbss_enable: Enable or disable 11AX MBSSID TWT.
  88. * @r_twt_enable: Enable or disable restricted TWT.
  89. */
  90. struct wmi_twt_enable_param {
  91. uint32_t pdev_id;
  92. uint32_t sta_cong_timer_ms;
  93. uint32_t mbss_support;
  94. uint32_t default_slot_size;
  95. uint32_t congestion_thresh_setup;
  96. uint32_t congestion_thresh_teardown;
  97. uint32_t congestion_thresh_critical;
  98. uint32_t interference_thresh_teardown;
  99. uint32_t interference_thresh_setup;
  100. uint32_t min_no_sta_setup;
  101. uint32_t min_no_sta_teardown;
  102. uint32_t no_of_bcast_mcast_slots;
  103. uint32_t min_no_twt_slots;
  104. uint32_t max_no_sta_twt;
  105. uint32_t mode_check_interval;
  106. uint32_t add_sta_slot_interval;
  107. uint32_t remove_sta_slot_interval;
  108. enum WMI_TWT_ROLE twt_role;
  109. enum WMI_TWT_OPERATION twt_oper;
  110. bool ext_conf_present;
  111. uint32_t b_twt_enable:1,
  112. b_twt_legacy_mbss_enable:1,
  113. b_twt_ax_mbss_enable:1;
  114. bool r_twt_enable;
  115. };
  116. /* status code of enabling TWT
  117. * WMI_ENABLE_TWT_STATUS_OK: enabling TWT successfully completed
  118. * WMI_ENABLE_TWT_STATUS_ALREADY_ENABLED: TWT already enabled
  119. * WMI_ENABLE_TWT_STATUS_NOT_READY: FW not ready for enabling TWT
  120. * WMI_ENABLE_TWT_INVALID_PARAM: invalid parameters
  121. * WMI_ENABLE_TWT_STATUS_UNKNOWN_ERROR: enabling TWT failed with an
  122. * unknown reason
  123. */
  124. enum WMI_HOST_ENABLE_TWT_STATUS {
  125. WMI_HOST_ENABLE_TWT_STATUS_OK,
  126. WMI_HOST_ENABLE_TWT_STATUS_ALREADY_ENABLED,
  127. WMI_HOST_ENABLE_TWT_STATUS_NOT_READY,
  128. WMI_HOST_ENABLE_TWT_INVALID_PARAM,
  129. WMI_HOST_ENABLE_TWT_STATUS_UNKNOWN_ERROR,
  130. };
  131. /**
  132. * struct wmi_twt_enable_complete_event_param:
  133. * @pdev_id: pdev_id for identifying the MAC.
  134. * @status: From enum WMI_HOST_ENABLE_TWT_STATUS
  135. */
  136. struct wmi_twt_enable_complete_event_param {
  137. uint32_t pdev_id;
  138. uint32_t status;
  139. };
  140. /**
  141. * struct wmi_twt_disable_param:
  142. * @pdev_id: pdev_id for identifying the MAC.
  143. * @ext_conf_present: If requestor/responder extend config is present.
  144. * @twt_role: values from enum WMI_TWT_ROLE.
  145. * @twt_oper: values from enum WMI_TWT_OPERATION.
  146. */
  147. struct wmi_twt_disable_param {
  148. uint32_t pdev_id;
  149. bool ext_conf_present;
  150. enum WMI_TWT_ROLE twt_role;
  151. enum WMI_TWT_OPERATION twt_oper;
  152. };
  153. /**
  154. * struct wmi_twt_disable_complete_event:
  155. * @pdev_id: pdev_id for identifying the MAC.
  156. */
  157. struct wmi_twt_disable_complete_event {
  158. uint32_t pdev_id;
  159. };
  160. /**
  161. * struct wmi_twt_ack_complete_event_param -
  162. * @vdev_id: vdev id
  163. * @peer_macaddr: peer mac address
  164. * @dialog_id: dialog id
  165. * @twt_cmd_ack: ack event to the corresponding twt command
  166. * @status: twt command status
  167. */
  168. struct wmi_twt_ack_complete_event_param {
  169. uint32_t vdev_id;
  170. struct qdf_mac_addr peer_macaddr;
  171. uint32_t dialog_id;
  172. uint32_t twt_cmd_ack;
  173. uint32_t status;
  174. };
  175. /* TWT event types
  176. * refer to wmi_unified.h enum wmi_twt_session_stats_type
  177. */
  178. enum host_twt_session_stats_type {
  179. HOST_TWT_SESSION_SETUP = 1,
  180. HOST_TWT_SESSION_TEARDOWN = 2,
  181. HOST_TWT_SESSION_UPDATE = 3,
  182. };
  183. /**
  184. * struct wmi_host_twt_session_stats_info:
  185. * @vdev_id: id of VDEV for twt session
  186. * @peer_mac: MAC address of node
  187. * @event_type: Indicates TWT session type (SETUP/TEARDOWN/UPDATE)
  188. * @flow_id: TWT flow identifier established with TWT peer
  189. * @bcast: If this is a broadcast TWT session
  190. * @trig: If the TWT session is trigger enabled
  191. * @announ: If the flow type is announced/unannounced
  192. * @protection: If the TWT protection field is set
  193. * @info_frame_disabled: If the TWT Information frame is disabled
  194. * @pm_responder_bit_valid: pm responder bit is valid or not
  195. * @pm_responder_bit: pm responder value
  196. * @dialog_id: Dialog_id of current session
  197. * @wake_dura_us: wake duration in us
  198. * @wake_intvl_us: wake time interval in us
  199. * @sp_offset_us: Time until initial TWT SP occurs
  200. * @sp_tsf_us_lo: TWT wake time TSF in usecs lower bits - 31:0
  201. * @sp_tsf_us_hi: TWT wake time TSF in usecs higher bits - 63:32
  202. */
  203. struct wmi_host_twt_session_stats_info {
  204. uint32_t vdev_id;
  205. uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
  206. uint32_t event_type;
  207. uint32_t flow_id:16,
  208. bcast:1,
  209. trig:1,
  210. announ:1,
  211. protection:1,
  212. info_frame_disabled:1,
  213. pm_responder_bit_valid:1,
  214. pm_responder_bit:1;
  215. uint32_t dialog_id;
  216. uint32_t wake_dura_us;
  217. uint32_t wake_intvl_us;
  218. uint32_t sp_offset_us;
  219. uint32_t sp_tsf_us_lo;
  220. uint32_t sp_tsf_us_hi;
  221. };
  222. /**
  223. * struct wmi_twt_session_stats_event_param -
  224. * @pdev_id: pdev_id for identifying the MAC.
  225. * @num_sessions: number of TWT sessions
  226. * @twt_sessions: received TWT sessions
  227. */
  228. struct wmi_twt_session_stats_event_param {
  229. uint32_t pdev_id;
  230. uint32_t num_sessions;
  231. };
  232. /* from IEEE 802.11ah section 9.4.2.200 */
  233. enum WMI_HOST_TWT_COMMAND {
  234. WMI_HOST_TWT_COMMAND_REQUEST_TWT = 0,
  235. WMI_HOST_TWT_COMMAND_SUGGEST_TWT = 1,
  236. WMI_HOST_TWT_COMMAND_DEMAND_TWT = 2,
  237. WMI_HOST_TWT_COMMAND_TWT_GROUPING = 3,
  238. WMI_HOST_TWT_COMMAND_ACCEPT_TWT = 4,
  239. WMI_HOST_TWT_COMMAND_ALTERNATE_TWT = 5,
  240. WMI_HOST_TWT_COMMAND_DICTATE_TWT = 6,
  241. WMI_HOST_TWT_COMMAND_REJECT_TWT = 7,
  242. };
  243. /**
  244. * struct wmi_twt_add_dialog_param -
  245. * @vdev_id: VDEV identifier
  246. * @peer_macaddr: peer MAC address when vdev is AP VDEV
  247. * @dialog_id: diaglog_id (TWT dialog ID)
  248. * This dialog ID must be unique within its vdev.
  249. * @wake_intvl_us: TWT Wake Interval in units of us
  250. * @wake_intvl_mantis: TWT Wake Interval Mantissa
  251. * - wake_intvl_mantis must be <= 0xFFFF
  252. * - wake_intvl_us must be divided evenly by wake_intvl_mantis,
  253. * i.e., wake_intvl_us % wake_intvl_mantis == 0
  254. * - the quotient of wake_intvl_us/wake_intvl_mantis must be
  255. * 2 to N-th(0<=N<=31) power,
  256. * i.e., wake_intvl_us/wake_intvl_mantis == 2^N, 0<=N<=31
  257. * @min_wake_intvl_us: Min tolerance limit of TWT wake interval
  258. * @max_wake_intvl_us: Max tolerance limit of TWT wake interval
  259. * @wake_dura_us: TWT Wake Duration in units of us, must be <= 0xFFFF
  260. * wake_dura_us must be divided evenly by 256,
  261. * i.e., wake_dura_us % 256 == 0
  262. * @min_wake_dura_us: Min tolerance limit of TWT wake duration.
  263. * @max_wake_dura_us: Max tolerance limit of TWT wake duration.
  264. * @sp_offset_us: this long time after TWT setup the 1st SP will start.
  265. * @twt_cmd: cmd from enum WMI_HOST_TWT_COMMAND
  266. * @flag_bcast: 0 means Individual TWT,
  267. * 1 means Broadcast TWT
  268. * @flag_trigger: 0 means non-Trigger-enabled TWT,
  269. * 1 means means Trigger-enabled TWT
  270. * @flag_flow_type: 0 means announced TWT,
  271. * 1 means un-announced TWT
  272. * @flag_protection: 0 means TWT protection is required,
  273. * 1 means TWT protection is not required
  274. * @b_twt_id0: 0 means BTWT recommendation will not be used
  275. * 1 means BTWT recommendation will be used
  276. * @flag_reserved: unused bits
  277. * @b_twt_recommendation: defines types of frames tx during bTWT SP
  278. * @b_twt_persistence: Countdown VAL frames to param update/teardown
  279. * @wake_time_tsf: Absolute TSF value to start first TWT service period
  280. * @announce_timeout_us: Timeout value before sending QoS NULL frame.
  281. * @link_id_bitmap: MLD links to which R-TWT element applies
  282. * @r_twt_dl_tid_bitmap: DL TIDs for R-TWT scheduling
  283. * @r_twt_ul_tid_bitmap: UL TIDs for R-TWT scheduling
  284. *
  285. */
  286. struct wmi_twt_add_dialog_param {
  287. uint32_t vdev_id;
  288. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  289. uint32_t dialog_id;
  290. uint32_t wake_intvl_us;
  291. uint32_t wake_intvl_mantis;
  292. uint32_t min_wake_intvl_us;
  293. uint32_t max_wake_intvl_us;
  294. uint32_t wake_dura_us;
  295. uint32_t min_wake_dura_us;
  296. uint32_t max_wake_dura_us;
  297. uint32_t sp_offset_us;
  298. enum WMI_HOST_TWT_COMMAND twt_cmd;
  299. uint32_t
  300. flag_bcast:1,
  301. flag_trigger:1,
  302. flag_flow_type:1,
  303. flag_protection:1,
  304. flag_b_twt_id0:1,
  305. flag_reserved:11,
  306. b_twt_persistence:8,
  307. b_twt_recommendation:3;
  308. uint64_t wake_time_tsf;
  309. uint32_t announce_timeout_us;
  310. uint32_t link_id_bitmap;
  311. uint32_t r_twt_dl_tid_bitmap;
  312. uint32_t r_twt_ul_tid_bitmap;
  313. };
  314. /* enum - status code of Get stats TWT dialog
  315. * @WMI_HOST_GET_STATS_TWT_STATUS_OK: Get status TWT dialog successfully completed
  316. * @WMI_HOST_GET_STATS_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID does not exist
  317. * @WMI_HOST_GET_STATS_TWT_STATUS_INVALID_PARAM: Invalid parameters
  318. * @WMI_HOST_GET_STATS_TWT_STATUS_UNKNOWN_ERROR: Unknown error
  319. */
  320. enum WMI_HOST_GET_STATS_TWT_STATUS {
  321. WMI_HOST_GET_STATS_TWT_STATUS_OK,
  322. WMI_HOST_GET_STATS_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  323. WMI_HOST_GET_STATS_TWT_STATUS_INVALID_PARAM,
  324. WMI_HOST_GET_STATS_TWT_STATUS_UNKNOWN_ERROR,
  325. };
  326. /* enum - status code of adding TWT dialog
  327. * @WMI_HOST_ADD_TWT_STATUS_OK: adding TWT dialog successfully completed
  328. * @WMI_HOST_ADD_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  329. * @WMI_HOST_ADD_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  330. * @WMI_HOST_ADD_TWT_STATUS_INVALID_PARAM: invalid parameters
  331. * @WMI_HOST_ADD_TWT_STATUS_NOT_READY: FW not ready
  332. * @WMI_HOST_ADD_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  333. * @WMI_HOST_ADD_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  334. * request/response frame
  335. * @WMI_HOST_ADD_TWT_STATUS_NO_RESPONSE: peer AP did not send the response frame
  336. * @WMI_HOST_ADD_TWT_STATUS_DENIED: AP did not accept the request
  337. * @WMI_HOST_ADD_TWT_STATUS_UNKNOWN_ERROR: adding TWT dialog failed with
  338. * an unknown reason
  339. * @WMI_HOST_ADD_TWT_STATUS_AP_PARAMS_NOT_IN_RANGE: peer AP wake interval,
  340. * duration not in range
  341. * @WMI_HOST_ADD_TWT_STATUS_AP_IE_VALIDATION_FAILED: peer AP IE Validation
  342. * Failed
  343. * @WMI_HOST_ADD_TWT_STATUS_ROAM_IN_PROGRESS: Roaming in progress
  344. * @WMI_HOST_ADD_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  345. * @WMI_HOST_ADD_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  346. */
  347. enum WMI_HOST_ADD_TWT_STATUS {
  348. WMI_HOST_ADD_TWT_STATUS_OK,
  349. WMI_HOST_ADD_TWT_STATUS_TWT_NOT_ENABLED,
  350. WMI_HOST_ADD_TWT_STATUS_USED_DIALOG_ID,
  351. WMI_HOST_ADD_TWT_STATUS_INVALID_PARAM,
  352. WMI_HOST_ADD_TWT_STATUS_NOT_READY,
  353. WMI_HOST_ADD_TWT_STATUS_NO_RESOURCE,
  354. WMI_HOST_ADD_TWT_STATUS_NO_ACK,
  355. WMI_HOST_ADD_TWT_STATUS_NO_RESPONSE,
  356. WMI_HOST_ADD_TWT_STATUS_DENIED,
  357. WMI_HOST_ADD_TWT_STATUS_UNKNOWN_ERROR,
  358. WMI_HOST_ADD_TWT_STATUS_AP_PARAMS_NOT_IN_RANGE,
  359. WMI_HOST_ADD_TWT_STATUS_AP_IE_VALIDATION_FAILED,
  360. WMI_HOST_ADD_TWT_STATUS_ROAM_IN_PROGRESS,
  361. WMI_HOST_ADD_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  362. WMI_HOST_ADD_TWT_STATUS_SCAN_IN_PROGRESS,
  363. };
  364. /**
  365. * struct wmi_twt_add_dialog_additional_params -
  366. * @twt_cmd: TWT command
  367. * @bcast: 0 means Individual TWT
  368. * 1 means Broadcast TWT
  369. * @trig_en: 0 means non-Trigger-enabled TWT
  370. * 1 means Trigger-enabled TWT
  371. * @announce: 0 means announced TWT
  372. * 1 means un-announced TWT
  373. * @protection: 0 means TWT protection is required
  374. * 1 means TWT protection is not required
  375. * @b_twt_id0: 0 means non-0 B-TWT ID or I-TWT
  376. * 1 means B-TWT ID 0
  377. * @info_frame_disabled: 0 means TWT Information frame is enabled
  378. * 1 means TWT Information frame is disabled
  379. * @pm_responder_bit_valid: 1 means responder pm mode field is valid
  380. * 0 means responder pm mode field is not valid
  381. * @pm_responder_bit: 1 means that responder set responder pm mode to 1
  382. * 0 means that responder set responder pm mode to 0
  383. * @wake_dur_us: wake duration in us
  384. * @wake_intvl_us: wake time interval in us
  385. * @sp_offset_us: Time until initial TWT SP occurs
  386. * @sp_tsf_us_lo: TWT service period tsf in usecs lower bits - 31:0
  387. * @sp_tsf_us_hi: TWT service period tsf in usecs higher bits - 63:32
  388. */
  389. struct wmi_twt_add_dialog_additional_params {
  390. uint32_t twt_cmd:8,
  391. bcast:1,
  392. trig_en:1,
  393. announce:1,
  394. protection:1,
  395. b_twt_id0:1,
  396. info_frame_disabled:1,
  397. pm_responder_bit_valid:1,
  398. pm_responder_bit:1;
  399. uint32_t wake_dur_us;
  400. uint32_t wake_intvl_us;
  401. uint32_t sp_offset_us;
  402. uint32_t sp_tsf_us_lo;
  403. uint32_t sp_tsf_us_hi;
  404. };
  405. /**
  406. * struct wmi_twt_add_dialog_complete_event_param - parameters from TWT
  407. * Add Dialog Complete event
  408. * @vdev_id: VDEV identifier
  409. * @peer_macaddr: Peer mac address
  410. * @dialog_id: TWT dialog ID
  411. * @status: refer to WMI_HOST_ADD_TWT_STATUS enum
  412. * @num_additional_twt_params: no of additional_twt_params available
  413. */
  414. struct wmi_twt_add_dialog_complete_event_param {
  415. uint32_t vdev_id;
  416. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  417. uint32_t dialog_id;
  418. uint32_t status;
  419. uint32_t num_additional_twt_params;
  420. };
  421. /**
  422. * struct wmi_twt_cap_bitmap_params - TWT capabilities bitmap
  423. * @twt_ack_support_cap: TWT ACK supported
  424. *
  425. */
  426. struct wmi_twt_cap_bitmap_params {
  427. uint32_t twt_ack_support_cap:1;
  428. };
  429. /**
  430. * struct wmi_twt_del_dialog_param -
  431. * @vdev_id: VDEV identifier
  432. * @peer_macaddr: Peer mac address
  433. * @dialog_id: TWT dialog ID
  434. * @b_twt_persistence: persistence val for b-twt
  435. */
  436. struct wmi_twt_del_dialog_param {
  437. uint32_t vdev_id;
  438. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  439. uint32_t dialog_id;
  440. #ifdef WLAN_SUPPORT_BCAST_TWT
  441. uint32_t b_twt_persistence;
  442. #endif
  443. };
  444. /**
  445. * enum WMI_HOST_DEL_TWT_STATUS - status code of deleting TWT dialog
  446. * @WMI_HOST_DEL_TWT_STATUS_OK: deleting TWT dialog successfully completed
  447. * @WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  448. * @WMI_HOST_DEL_TWT_STATUS_INVALID_PARAM: invalid parameters
  449. * @WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  450. * this dialog
  451. * @WMI_HOST_DEL_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  452. * @WMI_HOST_DEL_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the request/response
  453. * frame
  454. * @WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR: deleting TWT dialog failed with an
  455. * unknown reason
  456. * @WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN: Peer initiated TWT teardown
  457. * @WMI_HOST_DEL_TWT_STATUS_ROAMING: TWT teardown due to roaming.
  458. * @WMI_HOST_DEL_TWT_STATUS_CONCURRENCY: TWT session teardown due to
  459. * concurrent session coming up.
  460. * @WMI_HOST_DEL_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  461. * @WMI_HOST_DEL_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  462. * @WMI_HOST_DEL_TWT_STATUS_PS_DISABLE_TEARDOWN: PS disable TWT teardown
  463. */
  464. enum WMI_HOST_DEL_TWT_STATUS {
  465. WMI_HOST_DEL_TWT_STATUS_OK,
  466. WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  467. WMI_HOST_DEL_TWT_STATUS_INVALID_PARAM,
  468. WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_BUSY,
  469. WMI_HOST_DEL_TWT_STATUS_NO_RESOURCE,
  470. WMI_HOST_DEL_TWT_STATUS_NO_ACK,
  471. WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR,
  472. WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN,
  473. WMI_HOST_DEL_TWT_STATUS_ROAMING,
  474. WMI_HOST_DEL_TWT_STATUS_CONCURRENCY,
  475. WMI_HOST_DEL_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  476. WMI_HOST_DEL_TWT_STATUS_SCAN_IN_PROGRESS,
  477. WMI_HOST_DEL_TWT_STATUS_PS_DISABLE_TEARDOWN,
  478. };
  479. /**
  480. * struct wmi_twt_del_dialog_complete_event_param -
  481. * @vdev_id: VDEV identifier
  482. * @peer_macaddr: Peer mac address
  483. * @dialog_id: TWT dialog ID
  484. * @b_twt_persistence: persistence val for b-twt
  485. * @status: refer to WMI_HOST_DEL_TWT_STATUS enum
  486. */
  487. struct wmi_twt_del_dialog_complete_event_param {
  488. uint32_t vdev_id;
  489. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  490. uint32_t dialog_id;
  491. #ifdef WLAN_SUPPORT_BCAST_TWT
  492. uint32_t b_twt_persistence;
  493. #endif
  494. uint32_t status;
  495. };
  496. /**
  497. * struct wmi_twt_pause_dialog_cmd_param -
  498. * @vdev_id: VDEV identifier
  499. * @peer_macaddr: Peer mac address
  500. * @dialog_id: TWT dialog ID
  501. */
  502. struct wmi_twt_pause_dialog_cmd_param {
  503. uint32_t vdev_id;
  504. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  505. uint32_t dialog_id;
  506. };
  507. /**
  508. * struct wmi_twt_nudge_dialog_cmd_param -
  509. * @vdev_id: VDEV identifier
  510. * @peer_macaddr: Peer mac address
  511. * @dialog_id: TWT dialog ID
  512. * @suspend_duration: TWT suspend duration in microseconds
  513. * @next_twt_size: next TWT size
  514. */
  515. struct wmi_twt_nudge_dialog_cmd_param {
  516. uint32_t vdev_id;
  517. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  518. uint32_t dialog_id;
  519. uint32_t suspend_duration;
  520. uint32_t next_twt_size;
  521. };
  522. /* enum WMI_HOST_PAUSE_TWT_STATUS - status code of pausing TWT dialog
  523. * @WMI_HOST_PAUSE_TWT_STATUS_OK: pausing TWT dialog successfully completed
  524. * @WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  525. * @WMI_HOST_PAUSE_TWT_STATUS_INVALID_PARAM: invalid parameters
  526. * @WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  527. * this dialog
  528. * @WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  529. * @WMI_HOST_PAUSE_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  530. * request/response frame
  531. * @WMI_HOST_PAUSE_TWT_STATUS_UNKNOWN_ERROR: pausing TWT dialog failed with an
  532. * unknown reason
  533. * @WMI_HOST_PAUSE_TWT_STATUS_ALREADY_PAUSED: TWT dialog already in paused state
  534. * @WMI_HOST_PAUSE_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  535. * @WMI_HOST_PAUSE_TWT_STATUS_ROAM_IN_PROGRESS: Roaming is in progress
  536. * @WMI_HOST_PAUSE_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  537. */
  538. enum WMI_HOST_PAUSE_TWT_STATUS {
  539. WMI_HOST_PAUSE_TWT_STATUS_OK,
  540. WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  541. WMI_HOST_PAUSE_TWT_STATUS_INVALID_PARAM,
  542. WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY,
  543. WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE,
  544. WMI_HOST_PAUSE_TWT_STATUS_NO_ACK,
  545. WMI_HOST_PAUSE_TWT_STATUS_UNKNOWN_ERROR,
  546. WMI_HOST_PAUSE_TWT_STATUS_ALREADY_PAUSED,
  547. WMI_HOST_PAUSE_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  548. WMI_HOST_PAUSE_TWT_STATUS_ROAM_IN_PROGRESS,
  549. WMI_HOST_PAUSE_TWT_STATUS_SCAN_IN_PROGRESS,
  550. };
  551. /**
  552. * struct wmi_twt_pause_dialog_complete_event_param -
  553. * @vdev_id: VDEV identifier
  554. * @peer_macaddr: Peer mac address
  555. * @dialog_id: TWT dialog ID
  556. * @status: refer to WMI_HOST_PAUSE_TWT_STATUS
  557. */
  558. struct wmi_twt_pause_dialog_complete_event_param {
  559. uint32_t vdev_id;
  560. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  561. uint32_t dialog_id;
  562. enum WMI_HOST_PAUSE_TWT_STATUS status;
  563. };
  564. /* enum WMI_HOST_NUDGE_TWT_STATUS - status code of nudge TWT dialog
  565. * @WMI_HOST_NUDGE_TWT_STATUS_OK: nudge TWT dialog successfully completed
  566. * @WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  567. * @WMI_HOST_NUDGE_TWT_STATUS_INVALID_PARAM: invalid parameters
  568. * @WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  569. * this dialog
  570. * @WMI_HOST_NUDGE_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  571. * @WMI_HOST_NUDGE_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  572. * request/response frame
  573. * @WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR: nudge TWT dialog failed with an
  574. * unknown reason
  575. * @WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED: TWT dialog already in paused state
  576. * @WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  577. * @WMI_HOST_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS: Roaming in progress
  578. * @WMI_HOST_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  579. */
  580. enum WMI_HOST_NUDGE_TWT_STATUS {
  581. WMI_HOST_NUDGE_TWT_STATUS_OK,
  582. WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  583. WMI_HOST_NUDGE_TWT_STATUS_INVALID_PARAM,
  584. WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_BUSY,
  585. WMI_HOST_NUDGE_TWT_STATUS_NO_RESOURCE,
  586. WMI_HOST_NUDGE_TWT_STATUS_NO_ACK,
  587. WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR,
  588. WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED,
  589. WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  590. WMI_HOST_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS,
  591. WMI_HOST_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS,
  592. };
  593. /**
  594. * struct wmi_twt_nudge_dialog_complete_event_param -
  595. * @vdev_id: VDEV identifier
  596. * @peer_macaddr: Peer mac address
  597. * @dialog_id: TWT dialog ID
  598. * @status: refer to WMI_HOST_PAUSE_TWT_STATUS
  599. * @next_twt_tsf_us_lo: TSF lower bits (31:0) of next wake time
  600. * @next_twt_tsf_us_hi: TSF higher bits (32:63) of next wake time
  601. */
  602. struct wmi_twt_nudge_dialog_complete_event_param {
  603. uint32_t vdev_id;
  604. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  605. uint32_t dialog_id;
  606. enum WMI_HOST_NUDGE_TWT_STATUS status;
  607. uint32_t next_twt_tsf_us_lo;
  608. uint32_t next_twt_tsf_us_hi;
  609. };
  610. /**
  611. * struct wmi_twt_resume_dialog_cmd_param -
  612. * @vdev_id: VDEV identifier
  613. * @peer_macaddr: Peer mac address
  614. * @dialog_id: TWT dialog ID
  615. * @sp_offset_us: this long time after TWT resumed the 1st SP will start
  616. * @next_twt_size: Next TWT subfield Size.
  617. * Refer IEEE 802.11ax section "9.4.1.60 TWT Information field"
  618. */
  619. struct wmi_twt_resume_dialog_cmd_param {
  620. uint32_t vdev_id;
  621. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  622. uint32_t dialog_id;
  623. uint32_t sp_offset_us;
  624. uint32_t next_twt_size;
  625. };
  626. /* enum WMI_HOST_RESUME_TWT_STATUS - status code of resuming TWT dialog
  627. * @WMI_HOST_RESUME_TWT_STATUS_OK: resuming TWT dialog successfully completed
  628. * @WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  629. * @WMI_HOST_RESUME_TWT_STATUS_INVALID_PARAM: invalid parameters
  630. * @WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  631. * this dialog
  632. * @WMI_HOST_RESUME_TWT_STATUS_NOT_PAUSED: dialog not paused currently
  633. * @WMI_HOST_RESUME_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  634. * @WMI_HOST_RESUME_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  635. * request/response frame
  636. * @WMI_HOST_RESUME_TWT_STATUS_UNKNOWN_ERROR: resuming TWT dialog failed with an
  637. * unknown reason
  638. * @WMI_HOST_RESUME_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  639. * @WMI_HOST_RESUME_TWT_STATUS_ROAM_IN_PROGRESS: Roaming in progress
  640. * @WMI_HOST_RESUME_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  641. */
  642. enum WMI_HOST_RESUME_TWT_STATUS {
  643. WMI_HOST_RESUME_TWT_STATUS_OK,
  644. WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  645. WMI_HOST_RESUME_TWT_STATUS_INVALID_PARAM,
  646. WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_BUSY,
  647. WMI_HOST_RESUME_TWT_STATUS_NOT_PAUSED,
  648. WMI_HOST_RESUME_TWT_STATUS_NO_RESOURCE,
  649. WMI_HOST_RESUME_TWT_STATUS_NO_ACK,
  650. WMI_HOST_RESUME_TWT_STATUS_UNKNOWN_ERROR,
  651. WMI_HOST_RESUME_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  652. WMI_HOST_RESUME_TWT_STATUS_ROAM_IN_PROGRESS,
  653. WMI_HOST_RESUME_TWT_STATUS_SCAN_IN_PROGRESS,
  654. };
  655. /**
  656. * struct wmi_twt_resume_dialog_complete_event_param -
  657. * @vdev_id: VDEV identifier
  658. * @peer_macaddr: Peer mac address
  659. * @dialog_id: TWT dialog ID
  660. * @status: refer to WMI_HOST_RESUME_TWT_STATUS
  661. */
  662. struct wmi_twt_resume_dialog_complete_event_param {
  663. uint32_t vdev_id;
  664. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  665. uint32_t dialog_id;
  666. uint32_t status;
  667. };
  668. /**
  669. * struct wmi_twt_notify_event_param -
  670. * @vdev_id: VDEV identifier
  671. */
  672. struct wmi_twt_notify_event_param {
  673. uint32_t vdev_id;
  674. };
  675. #ifdef WLAN_SUPPORT_BCAST_TWT
  676. /**
  677. * struct wmi_twt_btwt_invite_sta_cmd_param -
  678. * @vdev_id: VDEV identifier
  679. * @peer_macaddr: Peer mac address
  680. * @dialog_id: TWT dialog ID
  681. */
  682. struct wmi_twt_btwt_invite_sta_cmd_param {
  683. uint32_t vdev_id;
  684. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  685. uint32_t dialog_id;
  686. };
  687. /* enum WMI_HOST_INVITATION_TWT_BTWT_STATUS - status code of TWT Invitation
  688. * dialog
  689. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_OK: BTWT invitation successfully
  690. * completed
  691. * WMI_HOST_INVITATION_TWT_TWT_STATUS_DIALOG_ID_NOT_EXIST: BTWT dialog ID not
  692. * exists
  693. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_INVALID_PARAM: invalid parameters
  694. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_BUSY: FW is in the process of
  695. * handling this dialog
  696. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_RESOURCE: FW resource exhausted
  697. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  698. * request/response frame
  699. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_UNKNOWN_ERROR: BTWT invitation failed
  700. * with an unknown reason
  701. */
  702. enum WMI_HOST_INVITATION_TWT_BTWT_STATUS {
  703. WMI_HOST_INVITATION_TWT_BTWT_STATUS_OK,
  704. WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST,
  705. WMI_HOST_INVITATION_TWT_BTWT_STATUS_INVALID_PARAM,
  706. WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_BUSY,
  707. WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_RESOURCE,
  708. WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_ACK,
  709. WMI_HOST_INVITATION_TWT_BTWT_STATUS_UNKNOWN_ERROR,
  710. };
  711. /**
  712. * struct wmi_twt_btwt_invite_sta_complete_event_param -
  713. * @vdev_id: VDEV identifier
  714. * @peer_macaddr: Peer mac address
  715. * @dialog_id: BTWT dialog ID
  716. * @status: refer to WMI_HOST_INVITATION_TWT_BTWT_STATUS
  717. */
  718. struct wmi_twt_btwt_invite_sta_complete_event_param {
  719. uint32_t vdev_id;
  720. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  721. uint32_t dialog_id;
  722. uint32_t status;
  723. };
  724. /**
  725. * struct wmi_twt_btwt_remove_sta_cmd_param -
  726. * @vdev_id: VDEV identifier
  727. * @peer_macaddr: Peer mac address
  728. * @dialog_id: BTWT dialog ID
  729. */
  730. struct wmi_twt_btwt_remove_sta_cmd_param {
  731. uint32_t vdev_id;
  732. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  733. uint32_t dialog_id;
  734. };
  735. /* enum WMI_HOST_KICKOFF_TWT_BTWT_STATUS - status code of resuming TWT dialog
  736. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_OK: TWT kickoff successfully completed
  737. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST: BTWT dialog ID not
  738. * exists
  739. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_INVALID_PARAM: invalid parameters
  740. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_BUSY: FW is in the process of
  741. * handling this dialog
  742. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NOT_PAUSED: Dialog not currently paused
  743. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_RESOURCE: FW resource exhausted
  744. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  745. * request/response frame
  746. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_UNKNOWN_ERROR: BTWT kickoff failed with an
  747. * unknown reason
  748. */
  749. enum WMI_HOST_KICKOFF_TWT_BTWT_STATUS {
  750. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_OK,
  751. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST,
  752. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_INVALID_PARAM,
  753. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_BUSY,
  754. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NOT_PAUSED,
  755. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_RESOURCE,
  756. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_ACK,
  757. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_UNKNOWN_ERROR,
  758. };
  759. /**
  760. * struct wmi_twt_btwt_remove_sta_complete_event_param -
  761. * @vdev_id: VDEV identifier
  762. * @peer_macaddr: Peer mac address
  763. * @dialog_id: BTWT dialog ID
  764. * @status: refer to WMI_HOST_KICKOFF_TWT_BTWT_STATUS
  765. */
  766. struct wmi_twt_btwt_remove_sta_complete_event_param {
  767. uint32_t vdev_id;
  768. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  769. uint32_t dialog_id;
  770. uint32_t status;
  771. };
  772. #endif
  773. /**
  774. * enum WMI_HOST_TWT_CMD_FOR_ACK_EVENT - Ack event for different TWT command
  775. * @WMI_HOST_TWT_ADD_DIALOG_CMDID: Ack event for add dialog command
  776. * @WMI_HOST_TWT_DEL_DIALOG_CMDID: Ack event for delete dialog command
  777. * @WMI_HOST_TWT_PAUSE_DIALOG_CMDID: Ack event for pause command
  778. * @WMI_HOST_TWT_RESUME_DIALOG_CMDID: Ack event for resume command
  779. * @WMI_HOST_TWT_NUDGE_DIALOG_CMDID: Ack event for nudge command
  780. * @WMI_HOST_TWT_UNKNOWN_CMDID: Ack event for unknown TWT command
  781. */
  782. enum WMI_HOST_TWT_CMD_FOR_ACK_EVENT {
  783. WMI_HOST_TWT_ADD_DIALOG_CMDID = 0,
  784. WMI_HOST_TWT_DEL_DIALOG_CMDID,
  785. WMI_HOST_TWT_PAUSE_DIALOG_CMDID,
  786. WMI_HOST_TWT_RESUME_DIALOG_CMDID,
  787. WMI_HOST_TWT_NUDGE_DIALOG_CMDID,
  788. WMI_HOST_TWT_UNKNOWN_CMDID,
  789. };
  790. #endif /* _WMI_UNIFIED_TWT_PARAM_H_ */