wmi_unified_twt_param.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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. * @WMI_HOST_ADD_TWT_STATUS_LINK_SWITCH_IN_PROGRESS: link switch is in progress
  347. * @WMI_HOST_ADD_TWT_STATUS_UNSUPPORTED_MODE_MLMR: MLMR mode not supported
  348. */
  349. enum WMI_HOST_ADD_TWT_STATUS {
  350. WMI_HOST_ADD_TWT_STATUS_OK,
  351. WMI_HOST_ADD_TWT_STATUS_TWT_NOT_ENABLED,
  352. WMI_HOST_ADD_TWT_STATUS_USED_DIALOG_ID,
  353. WMI_HOST_ADD_TWT_STATUS_INVALID_PARAM,
  354. WMI_HOST_ADD_TWT_STATUS_NOT_READY,
  355. WMI_HOST_ADD_TWT_STATUS_NO_RESOURCE,
  356. WMI_HOST_ADD_TWT_STATUS_NO_ACK,
  357. WMI_HOST_ADD_TWT_STATUS_NO_RESPONSE,
  358. WMI_HOST_ADD_TWT_STATUS_DENIED,
  359. WMI_HOST_ADD_TWT_STATUS_UNKNOWN_ERROR,
  360. WMI_HOST_ADD_TWT_STATUS_AP_PARAMS_NOT_IN_RANGE,
  361. WMI_HOST_ADD_TWT_STATUS_AP_IE_VALIDATION_FAILED,
  362. WMI_HOST_ADD_TWT_STATUS_ROAM_IN_PROGRESS,
  363. WMI_HOST_ADD_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  364. WMI_HOST_ADD_TWT_STATUS_SCAN_IN_PROGRESS,
  365. WMI_HOST_ADD_TWT_STATUS_LINK_SWITCH_IN_PROGRESS,
  366. WMI_HOST_ADD_TWT_STATUS_UNSUPPORTED_MODE_MLMR,
  367. };
  368. /**
  369. * struct wmi_twt_add_dialog_additional_params -
  370. * @twt_cmd: TWT command
  371. * @bcast: 0 means Individual TWT
  372. * 1 means Broadcast TWT
  373. * @trig_en: 0 means non-Trigger-enabled TWT
  374. * 1 means Trigger-enabled TWT
  375. * @announce: 0 means announced TWT
  376. * 1 means un-announced TWT
  377. * @protection: 0 means TWT protection is required
  378. * 1 means TWT protection is not required
  379. * @b_twt_id0: 0 means non-0 B-TWT ID or I-TWT
  380. * 1 means B-TWT ID 0
  381. * @info_frame_disabled: 0 means TWT Information frame is enabled
  382. * 1 means TWT Information frame is disabled
  383. * @pm_responder_bit_valid: 1 means responder pm mode field is valid
  384. * 0 means responder pm mode field is not valid
  385. * @pm_responder_bit: 1 means that responder set responder pm mode to 1
  386. * 0 means that responder set responder pm mode to 0
  387. * @wake_dur_us: wake duration in us
  388. * @wake_intvl_us: wake time interval in us
  389. * @sp_offset_us: Time until initial TWT SP occurs
  390. * @sp_tsf_us_lo: TWT service period tsf in usecs lower bits - 31:0
  391. * @sp_tsf_us_hi: TWT service period tsf in usecs higher bits - 63:32
  392. */
  393. struct wmi_twt_add_dialog_additional_params {
  394. uint32_t twt_cmd:8,
  395. bcast:1,
  396. trig_en:1,
  397. announce:1,
  398. protection:1,
  399. b_twt_id0:1,
  400. info_frame_disabled:1,
  401. pm_responder_bit_valid:1,
  402. pm_responder_bit:1;
  403. uint32_t wake_dur_us;
  404. uint32_t wake_intvl_us;
  405. uint32_t sp_offset_us;
  406. uint32_t sp_tsf_us_lo;
  407. uint32_t sp_tsf_us_hi;
  408. };
  409. /**
  410. * struct wmi_twt_add_dialog_complete_event_param - parameters from TWT
  411. * Add Dialog Complete event
  412. * @vdev_id: VDEV identifier
  413. * @peer_macaddr: Peer mac address
  414. * @dialog_id: TWT dialog ID
  415. * @status: refer to WMI_HOST_ADD_TWT_STATUS enum
  416. * @num_additional_twt_params: no of additional_twt_params available
  417. */
  418. struct wmi_twt_add_dialog_complete_event_param {
  419. uint32_t vdev_id;
  420. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  421. uint32_t dialog_id;
  422. uint32_t status;
  423. uint32_t num_additional_twt_params;
  424. };
  425. /**
  426. * struct wmi_twt_cap_bitmap_params - TWT capabilities bitmap
  427. * @twt_ack_support_cap: TWT ACK supported
  428. *
  429. */
  430. struct wmi_twt_cap_bitmap_params {
  431. uint32_t twt_ack_support_cap:1;
  432. };
  433. /**
  434. * struct wmi_twt_del_dialog_param -
  435. * @vdev_id: VDEV identifier
  436. * @peer_macaddr: Peer mac address
  437. * @dialog_id: TWT dialog ID
  438. * @b_twt_persistence: persistence val for b-twt
  439. */
  440. struct wmi_twt_del_dialog_param {
  441. uint32_t vdev_id;
  442. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  443. uint32_t dialog_id;
  444. #ifdef WLAN_SUPPORT_BCAST_TWT
  445. uint32_t b_twt_persistence;
  446. #endif
  447. };
  448. /**
  449. * enum WMI_HOST_DEL_TWT_STATUS - status code of deleting TWT dialog
  450. * @WMI_HOST_DEL_TWT_STATUS_OK: deleting TWT dialog successfully completed
  451. * @WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  452. * @WMI_HOST_DEL_TWT_STATUS_INVALID_PARAM: invalid parameters
  453. * @WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  454. * this dialog
  455. * @WMI_HOST_DEL_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  456. * @WMI_HOST_DEL_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the request/response
  457. * frame
  458. * @WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR: deleting TWT dialog failed with an
  459. * unknown reason
  460. * @WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN: Peer initiated TWT teardown
  461. * @WMI_HOST_DEL_TWT_STATUS_ROAMING: TWT teardown due to roaming.
  462. * @WMI_HOST_DEL_TWT_STATUS_CONCURRENCY: TWT session teardown due to
  463. * concurrent session coming up.
  464. * @WMI_HOST_DEL_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  465. * @WMI_HOST_DEL_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  466. * @WMI_HOST_DEL_TWT_STATUS_PS_DISABLE_TEARDOWN: PS disable TWT teardown
  467. */
  468. enum WMI_HOST_DEL_TWT_STATUS {
  469. WMI_HOST_DEL_TWT_STATUS_OK,
  470. WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  471. WMI_HOST_DEL_TWT_STATUS_INVALID_PARAM,
  472. WMI_HOST_DEL_TWT_STATUS_DIALOG_ID_BUSY,
  473. WMI_HOST_DEL_TWT_STATUS_NO_RESOURCE,
  474. WMI_HOST_DEL_TWT_STATUS_NO_ACK,
  475. WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR,
  476. WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN,
  477. WMI_HOST_DEL_TWT_STATUS_ROAMING,
  478. WMI_HOST_DEL_TWT_STATUS_CONCURRENCY,
  479. WMI_HOST_DEL_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  480. WMI_HOST_DEL_TWT_STATUS_SCAN_IN_PROGRESS,
  481. WMI_HOST_DEL_TWT_STATUS_PS_DISABLE_TEARDOWN,
  482. };
  483. /**
  484. * struct wmi_twt_del_dialog_complete_event_param -
  485. * @vdev_id: VDEV identifier
  486. * @peer_macaddr: Peer mac address
  487. * @dialog_id: TWT dialog ID
  488. * @b_twt_persistence: persistence val for b-twt
  489. * @status: refer to WMI_HOST_DEL_TWT_STATUS enum
  490. */
  491. struct wmi_twt_del_dialog_complete_event_param {
  492. uint32_t vdev_id;
  493. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  494. uint32_t dialog_id;
  495. #ifdef WLAN_SUPPORT_BCAST_TWT
  496. uint32_t b_twt_persistence;
  497. #endif
  498. uint32_t status;
  499. };
  500. /**
  501. * struct wmi_twt_pause_dialog_cmd_param -
  502. * @vdev_id: VDEV identifier
  503. * @peer_macaddr: Peer mac address
  504. * @dialog_id: TWT dialog ID
  505. */
  506. struct wmi_twt_pause_dialog_cmd_param {
  507. uint32_t vdev_id;
  508. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  509. uint32_t dialog_id;
  510. };
  511. /**
  512. * struct wmi_twt_nudge_dialog_cmd_param -
  513. * @vdev_id: VDEV identifier
  514. * @peer_macaddr: Peer mac address
  515. * @dialog_id: TWT dialog ID
  516. * @suspend_duration: TWT suspend duration in microseconds
  517. * @next_twt_size: next TWT size
  518. */
  519. struct wmi_twt_nudge_dialog_cmd_param {
  520. uint32_t vdev_id;
  521. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  522. uint32_t dialog_id;
  523. uint32_t suspend_duration;
  524. uint32_t next_twt_size;
  525. };
  526. /* enum WMI_HOST_PAUSE_TWT_STATUS - status code of pausing TWT dialog
  527. * @WMI_HOST_PAUSE_TWT_STATUS_OK: pausing TWT dialog successfully completed
  528. * @WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  529. * @WMI_HOST_PAUSE_TWT_STATUS_INVALID_PARAM: invalid parameters
  530. * @WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  531. * this dialog
  532. * @WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  533. * @WMI_HOST_PAUSE_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  534. * request/response frame
  535. * @WMI_HOST_PAUSE_TWT_STATUS_UNKNOWN_ERROR: pausing TWT dialog failed with an
  536. * unknown reason
  537. * @WMI_HOST_PAUSE_TWT_STATUS_ALREADY_PAUSED: TWT dialog already in paused state
  538. * @WMI_HOST_PAUSE_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  539. * @WMI_HOST_PAUSE_TWT_STATUS_ROAM_IN_PROGRESS: Roaming is in progress
  540. * @WMI_HOST_PAUSE_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  541. */
  542. enum WMI_HOST_PAUSE_TWT_STATUS {
  543. WMI_HOST_PAUSE_TWT_STATUS_OK,
  544. WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  545. WMI_HOST_PAUSE_TWT_STATUS_INVALID_PARAM,
  546. WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY,
  547. WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE,
  548. WMI_HOST_PAUSE_TWT_STATUS_NO_ACK,
  549. WMI_HOST_PAUSE_TWT_STATUS_UNKNOWN_ERROR,
  550. WMI_HOST_PAUSE_TWT_STATUS_ALREADY_PAUSED,
  551. WMI_HOST_PAUSE_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  552. WMI_HOST_PAUSE_TWT_STATUS_ROAM_IN_PROGRESS,
  553. WMI_HOST_PAUSE_TWT_STATUS_SCAN_IN_PROGRESS,
  554. };
  555. /**
  556. * struct wmi_twt_pause_dialog_complete_event_param -
  557. * @vdev_id: VDEV identifier
  558. * @peer_macaddr: Peer mac address
  559. * @dialog_id: TWT dialog ID
  560. * @status: refer to WMI_HOST_PAUSE_TWT_STATUS
  561. */
  562. struct wmi_twt_pause_dialog_complete_event_param {
  563. uint32_t vdev_id;
  564. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  565. uint32_t dialog_id;
  566. enum WMI_HOST_PAUSE_TWT_STATUS status;
  567. };
  568. /* enum WMI_HOST_NUDGE_TWT_STATUS - status code of nudge TWT dialog
  569. * @WMI_HOST_NUDGE_TWT_STATUS_OK: nudge TWT dialog successfully completed
  570. * @WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  571. * @WMI_HOST_NUDGE_TWT_STATUS_INVALID_PARAM: invalid parameters
  572. * @WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  573. * this dialog
  574. * @WMI_HOST_NUDGE_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  575. * @WMI_HOST_NUDGE_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  576. * request/response frame
  577. * @WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR: nudge TWT dialog failed with an
  578. * unknown reason
  579. * @WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED: TWT dialog already in paused state
  580. * @WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  581. * @WMI_HOST_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS: Roaming in progress
  582. * @WMI_HOST_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  583. */
  584. enum WMI_HOST_NUDGE_TWT_STATUS {
  585. WMI_HOST_NUDGE_TWT_STATUS_OK,
  586. WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  587. WMI_HOST_NUDGE_TWT_STATUS_INVALID_PARAM,
  588. WMI_HOST_NUDGE_TWT_STATUS_DIALOG_ID_BUSY,
  589. WMI_HOST_NUDGE_TWT_STATUS_NO_RESOURCE,
  590. WMI_HOST_NUDGE_TWT_STATUS_NO_ACK,
  591. WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR,
  592. WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED,
  593. WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  594. WMI_HOST_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS,
  595. WMI_HOST_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS,
  596. };
  597. /**
  598. * struct wmi_twt_nudge_dialog_complete_event_param -
  599. * @vdev_id: VDEV identifier
  600. * @peer_macaddr: Peer mac address
  601. * @dialog_id: TWT dialog ID
  602. * @status: refer to WMI_HOST_PAUSE_TWT_STATUS
  603. * @next_twt_tsf_us_lo: TSF lower bits (31:0) of next wake time
  604. * @next_twt_tsf_us_hi: TSF higher bits (32:63) of next wake time
  605. */
  606. struct wmi_twt_nudge_dialog_complete_event_param {
  607. uint32_t vdev_id;
  608. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  609. uint32_t dialog_id;
  610. enum WMI_HOST_NUDGE_TWT_STATUS status;
  611. uint32_t next_twt_tsf_us_lo;
  612. uint32_t next_twt_tsf_us_hi;
  613. };
  614. /**
  615. * struct wmi_twt_resume_dialog_cmd_param -
  616. * @vdev_id: VDEV identifier
  617. * @peer_macaddr: Peer mac address
  618. * @dialog_id: TWT dialog ID
  619. * @sp_offset_us: this long time after TWT resumed the 1st SP will start
  620. * @next_twt_size: Next TWT subfield Size.
  621. * Refer IEEE 802.11ax section "9.4.1.60 TWT Information field"
  622. */
  623. struct wmi_twt_resume_dialog_cmd_param {
  624. uint32_t vdev_id;
  625. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  626. uint32_t dialog_id;
  627. uint32_t sp_offset_us;
  628. uint32_t next_twt_size;
  629. };
  630. /* enum WMI_HOST_RESUME_TWT_STATUS - status code of resuming TWT dialog
  631. * @WMI_HOST_RESUME_TWT_STATUS_OK: resuming TWT dialog successfully completed
  632. * @WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST: TWT dialog ID not exists
  633. * @WMI_HOST_RESUME_TWT_STATUS_INVALID_PARAM: invalid parameters
  634. * @WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_BUSY: FW is in the process of handling
  635. * this dialog
  636. * @WMI_HOST_RESUME_TWT_STATUS_NOT_PAUSED: dialog not paused currently
  637. * @WMI_HOST_RESUME_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  638. * @WMI_HOST_RESUME_TWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  639. * request/response frame
  640. * @WMI_HOST_RESUME_TWT_STATUS_UNKNOWN_ERROR: resuming TWT dialog failed with an
  641. * unknown reason
  642. * @WMI_HOST_RESUME_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  643. * @WMI_HOST_RESUME_TWT_STATUS_ROAM_IN_PROGRESS: Roaming in progress
  644. * @WMI_HOST_RESUME_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  645. */
  646. enum WMI_HOST_RESUME_TWT_STATUS {
  647. WMI_HOST_RESUME_TWT_STATUS_OK,
  648. WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST,
  649. WMI_HOST_RESUME_TWT_STATUS_INVALID_PARAM,
  650. WMI_HOST_RESUME_TWT_STATUS_DIALOG_ID_BUSY,
  651. WMI_HOST_RESUME_TWT_STATUS_NOT_PAUSED,
  652. WMI_HOST_RESUME_TWT_STATUS_NO_RESOURCE,
  653. WMI_HOST_RESUME_TWT_STATUS_NO_ACK,
  654. WMI_HOST_RESUME_TWT_STATUS_UNKNOWN_ERROR,
  655. WMI_HOST_RESUME_TWT_STATUS_CHAN_SW_IN_PROGRESS,
  656. WMI_HOST_RESUME_TWT_STATUS_ROAM_IN_PROGRESS,
  657. WMI_HOST_RESUME_TWT_STATUS_SCAN_IN_PROGRESS,
  658. };
  659. /**
  660. * struct wmi_twt_resume_dialog_complete_event_param -
  661. * @vdev_id: VDEV identifier
  662. * @peer_macaddr: Peer mac address
  663. * @dialog_id: TWT dialog ID
  664. * @status: refer to WMI_HOST_RESUME_TWT_STATUS
  665. */
  666. struct wmi_twt_resume_dialog_complete_event_param {
  667. uint32_t vdev_id;
  668. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  669. uint32_t dialog_id;
  670. uint32_t status;
  671. };
  672. /**
  673. * struct wmi_twt_notify_event_param -
  674. * @vdev_id: VDEV identifier
  675. */
  676. struct wmi_twt_notify_event_param {
  677. uint32_t vdev_id;
  678. };
  679. #ifdef WLAN_SUPPORT_BCAST_TWT
  680. /**
  681. * struct wmi_twt_btwt_invite_sta_cmd_param -
  682. * @vdev_id: VDEV identifier
  683. * @peer_macaddr: Peer mac address
  684. * @dialog_id: TWT dialog ID
  685. */
  686. struct wmi_twt_btwt_invite_sta_cmd_param {
  687. uint32_t vdev_id;
  688. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  689. uint32_t dialog_id;
  690. };
  691. /* enum WMI_HOST_INVITATION_TWT_BTWT_STATUS - status code of TWT Invitation
  692. * dialog
  693. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_OK: BTWT invitation successfully
  694. * completed
  695. * WMI_HOST_INVITATION_TWT_TWT_STATUS_DIALOG_ID_NOT_EXIST: BTWT dialog ID not
  696. * exists
  697. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_INVALID_PARAM: invalid parameters
  698. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_BUSY: FW is in the process of
  699. * handling this dialog
  700. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_RESOURCE: FW resource exhausted
  701. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  702. * request/response frame
  703. * WMI_HOST_INVITATION_TWT_BTWT_STATUS_UNKNOWN_ERROR: BTWT invitation failed
  704. * with an unknown reason
  705. */
  706. enum WMI_HOST_INVITATION_TWT_BTWT_STATUS {
  707. WMI_HOST_INVITATION_TWT_BTWT_STATUS_OK,
  708. WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST,
  709. WMI_HOST_INVITATION_TWT_BTWT_STATUS_INVALID_PARAM,
  710. WMI_HOST_INVITATION_TWT_BTWT_STATUS_DIALOG_ID_BUSY,
  711. WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_RESOURCE,
  712. WMI_HOST_INVITATION_TWT_BTWT_STATUS_NO_ACK,
  713. WMI_HOST_INVITATION_TWT_BTWT_STATUS_UNKNOWN_ERROR,
  714. };
  715. /**
  716. * struct wmi_twt_btwt_invite_sta_complete_event_param -
  717. * @vdev_id: VDEV identifier
  718. * @peer_macaddr: Peer mac address
  719. * @dialog_id: BTWT dialog ID
  720. * @status: refer to WMI_HOST_INVITATION_TWT_BTWT_STATUS
  721. */
  722. struct wmi_twt_btwt_invite_sta_complete_event_param {
  723. uint32_t vdev_id;
  724. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  725. uint32_t dialog_id;
  726. uint32_t status;
  727. };
  728. /**
  729. * struct wmi_twt_btwt_remove_sta_cmd_param -
  730. * @vdev_id: VDEV identifier
  731. * @peer_macaddr: Peer mac address
  732. * @dialog_id: BTWT dialog ID
  733. */
  734. struct wmi_twt_btwt_remove_sta_cmd_param {
  735. uint32_t vdev_id;
  736. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  737. uint32_t dialog_id;
  738. };
  739. /* enum WMI_HOST_KICKOFF_TWT_BTWT_STATUS - status code of resuming TWT dialog
  740. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_OK: TWT kickoff successfully completed
  741. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST: BTWT dialog ID not
  742. * exists
  743. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_INVALID_PARAM: invalid parameters
  744. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_BUSY: FW is in the process of
  745. * handling this dialog
  746. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NOT_PAUSED: Dialog not currently paused
  747. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_RESOURCE: FW resource exhausted
  748. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_ACK: peer AP/STA did not ACK the
  749. * request/response frame
  750. * WMI_HOST_KICKOFF_TWT_BTWT_STATUS_UNKNOWN_ERROR: BTWT kickoff failed with an
  751. * unknown reason
  752. */
  753. enum WMI_HOST_KICKOFF_TWT_BTWT_STATUS {
  754. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_OK,
  755. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_NOT_EXIST,
  756. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_INVALID_PARAM,
  757. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_DIALOG_ID_BUSY,
  758. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NOT_PAUSED,
  759. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_RESOURCE,
  760. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_NO_ACK,
  761. WMI_HOST_KICKOFF_TWT_BTWT_STATUS_UNKNOWN_ERROR,
  762. };
  763. /**
  764. * struct wmi_twt_btwt_remove_sta_complete_event_param -
  765. * @vdev_id: VDEV identifier
  766. * @peer_macaddr: Peer mac address
  767. * @dialog_id: BTWT dialog ID
  768. * @status: refer to WMI_HOST_KICKOFF_TWT_BTWT_STATUS
  769. */
  770. struct wmi_twt_btwt_remove_sta_complete_event_param {
  771. uint32_t vdev_id;
  772. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  773. uint32_t dialog_id;
  774. uint32_t status;
  775. };
  776. #endif
  777. /**
  778. * enum WMI_HOST_TWT_CMD_FOR_ACK_EVENT - Ack event for different TWT command
  779. * @WMI_HOST_TWT_ADD_DIALOG_CMDID: Ack event for add dialog command
  780. * @WMI_HOST_TWT_DEL_DIALOG_CMDID: Ack event for delete dialog command
  781. * @WMI_HOST_TWT_PAUSE_DIALOG_CMDID: Ack event for pause command
  782. * @WMI_HOST_TWT_RESUME_DIALOG_CMDID: Ack event for resume command
  783. * @WMI_HOST_TWT_NUDGE_DIALOG_CMDID: Ack event for nudge command
  784. * @WMI_HOST_TWT_UNKNOWN_CMDID: Ack event for unknown TWT command
  785. */
  786. enum WMI_HOST_TWT_CMD_FOR_ACK_EVENT {
  787. WMI_HOST_TWT_ADD_DIALOG_CMDID = 0,
  788. WMI_HOST_TWT_DEL_DIALOG_CMDID,
  789. WMI_HOST_TWT_PAUSE_DIALOG_CMDID,
  790. WMI_HOST_TWT_RESUME_DIALOG_CMDID,
  791. WMI_HOST_TWT_NUDGE_DIALOG_CMDID,
  792. WMI_HOST_TWT_UNKNOWN_CMDID,
  793. };
  794. #endif /* _WMI_UNIFIED_TWT_PARAM_H_ */