wlan_mlme_cmn.h 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. /*
  2. * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. /**
  18. * DOC: Define Common MLME structure and APIs
  19. */
  20. #ifndef _WLAN_MLME_CMN_H_
  21. #define _WLAN_MLME_CMN_H_
  22. #include <include/wlan_psoc_mlme.h>
  23. #include <include/wlan_pdev_mlme.h>
  24. #include <include/wlan_vdev_mlme.h>
  25. #include "wlan_cm_public_struct.h"
  26. #include "wlan_twt_public_structs.h"
  27. /**
  28. * mlme_cm_ops: connection manager osif callbacks
  29. * @mlme_cm_connect_complete_cb: Connect done callback
  30. * @vdev: vdev pointer
  31. * @rsp: connect response
  32. *
  33. * @mlme_cm_failed_candidate_cb: Callback to indicate failed candidate
  34. * @vdev: vdev pointer
  35. * @rsp: connect response
  36. *
  37. * @mlme_cm_update_id_and_src_cb: Callback to update connect id and
  38. * source of the connect request
  39. * @vdev: vdev pointer
  40. * @Source: Source of the connect req
  41. * @cm_id: connection manager id
  42. *
  43. * @mlme_cm_disconnect_complete_cb: Disconnect done callback
  44. * @vdev: vdev pointer
  45. * @rsp: Disconnect response
  46. *
  47. * @mlme_cm_disconnect_start_cb: Disconnect start callback
  48. * @vdev: vdev pointer
  49. *
  50. * @mlme_cm_roam_sync_cb: Roam sync callback
  51. * @vdev: vdev pointer
  52. *
  53. * @mlme_cm_pmksa_candidate_notify_cb: Roam pmksa candidate notify callback
  54. * @vdev: vdev pointer
  55. * @bssid: bssid
  56. * @index: index
  57. * @preauth: preauth flag
  58. *
  59. * @mlme_cm_roam_start_cb: Roam start callback
  60. * @vdev: vdev pointer
  61. *
  62. * @mlme_cm_roam_abort_cb: Roam abort callback
  63. * @vdev: vdev pointer
  64. *
  65. * @mlme_cm_roam_cmpl_cb: Roam sync complete cb
  66. * @vdev: vdev pointer
  67. *
  68. * @mlme_cm_ft_preauth_cmpl_cb: Roam ft preauth complete cb
  69. * @vdev: vdev pointer
  70. * @rsp: preauth response pointer
  71. *
  72. * @mlme_cm_cckm_preauth_cmpl_cb: Roam cckm preauth complete cb
  73. * @vdev: vdev pointer
  74. * @rsp: preauth response pointer
  75. */
  76. struct mlme_cm_ops {
  77. QDF_STATUS (*mlme_cm_connect_complete_cb)(
  78. struct wlan_objmgr_vdev *vdev,
  79. struct wlan_cm_connect_resp *rsp);
  80. QDF_STATUS (*mlme_cm_failed_candidate_cb)(
  81. struct wlan_objmgr_vdev *vdev,
  82. struct wlan_cm_connect_resp *rsp);
  83. QDF_STATUS (*mlme_cm_update_id_and_src_cb)(
  84. struct wlan_objmgr_vdev *vdev,
  85. enum wlan_cm_source source,
  86. wlan_cm_id cm_id);
  87. QDF_STATUS (*mlme_cm_disconnect_complete_cb)(
  88. struct wlan_objmgr_vdev *vdev,
  89. struct wlan_cm_discon_rsp *rsp);
  90. QDF_STATUS (*mlme_cm_disconnect_start_cb)(
  91. struct wlan_objmgr_vdev *vdev);
  92. #ifdef CONN_MGR_ADV_FEATURE
  93. QDF_STATUS (*mlme_cm_roam_sync_cb)(struct wlan_objmgr_vdev *vdev);
  94. QDF_STATUS (*mlme_cm_pmksa_candidate_notify_cb)(
  95. struct wlan_objmgr_vdev *vdev,
  96. struct qdf_mac_addr *bssid,
  97. int index, bool preauth);
  98. #endif
  99. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  100. QDF_STATUS (*mlme_cm_roam_start_cb)(struct wlan_objmgr_vdev *vdev);
  101. QDF_STATUS (*mlme_cm_roam_abort_cb)(struct wlan_objmgr_vdev *vdev);
  102. QDF_STATUS (*mlme_cm_roam_cmpl_cb)(struct wlan_objmgr_vdev *vdev);
  103. #endif
  104. #ifdef WLAN_FEATURE_PREAUTH_ENABLE
  105. QDF_STATUS (*mlme_cm_ft_preauth_cmpl_cb)(
  106. struct wlan_objmgr_vdev *vdev,
  107. struct wlan_preauth_rsp *rsp);
  108. #ifdef FEATURE_WLAN_ESE
  109. QDF_STATUS (*mlme_cm_cckm_preauth_cmpl_cb)(
  110. struct wlan_objmgr_vdev *vdev,
  111. struct wlan_preauth_rsp *rsp);
  112. #endif
  113. #endif
  114. };
  115. /**
  116. * struct mlme_vdev_mgr_ops - MLME VDEV mgr osif callbacks
  117. * @mlme_vdev_mgr_set_mac_addr_response: Callback to indicate set MAC address
  118. * response to osif
  119. */
  120. struct mlme_vdev_mgr_ops {
  121. #ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
  122. QDF_STATUS (*mlme_vdev_mgr_set_mac_addr_response)(uint8_t vdev_id,
  123. uint8_t resp_status);
  124. #endif
  125. };
  126. /**
  127. * struct mlme_twt_ops: twt component osif callbacks
  128. * @mlme_twt_enable_complete_cb: TWT enable complete callback
  129. * @psoc: psoc pointer
  130. * @event: response
  131. * @context: context
  132. *
  133. * @mlme_twt_disable_complete_cb: TWT disable complete callback
  134. * @psoc: psoc pointer
  135. * @event: response
  136. * @context: context
  137. *
  138. * @mlme_twt_ack_complete_cb: TWT ack complete callback
  139. * @psoc: psoc pointer
  140. * @event: response
  141. * @context: context
  142. *
  143. * @mlme_twt_setup_complete_cb: TWT setup complete callback
  144. * @psoc: psoc pointer
  145. * @event: response
  146. * @renego_fail: flag to indicate if renegotiation failure case
  147. *
  148. * @mlme_twt_teardown_complete_cb: TWT teardown complete callback
  149. * @psoc: psoc pointer
  150. * @event: response
  151. *
  152. * @mlme_twt_pause_complete_cb: TWT pause complete callback
  153. * @psoc: psoc pointer
  154. * @event: response
  155. *
  156. * @mlme_twt_resume_complete_cb: TWT resume complete callback
  157. * @psoc: psoc pointer
  158. * @event: response
  159. *
  160. * @mlme_twt_nudge_complete_cb: TWT nudge complete callback
  161. * @psoc: psoc pointer
  162. * @event: response
  163. *
  164. * @mlme_twt_notify_complete_cb: TWT notify complete callback
  165. * @psoc: psoc pointer
  166. * @event: response
  167. */
  168. struct mlme_twt_ops {
  169. QDF_STATUS (*mlme_twt_enable_complete_cb)(
  170. struct wlan_objmgr_psoc *psoc,
  171. struct twt_enable_complete_event_param *event,
  172. void *context);
  173. QDF_STATUS (*mlme_twt_disable_complete_cb)(
  174. struct wlan_objmgr_psoc *psoc,
  175. struct twt_disable_complete_event_param *event,
  176. void *context);
  177. QDF_STATUS (*mlme_twt_ack_complete_cb)(
  178. struct wlan_objmgr_psoc *psoc,
  179. struct twt_ack_complete_event_param *event,
  180. void *context);
  181. QDF_STATUS (*mlme_twt_setup_complete_cb)(
  182. struct wlan_objmgr_psoc *psoc,
  183. struct twt_add_dialog_complete_event *event,
  184. bool renego_fail);
  185. QDF_STATUS (*mlme_twt_teardown_complete_cb)(
  186. struct wlan_objmgr_psoc *psoc,
  187. struct twt_del_dialog_complete_event_param *event);
  188. QDF_STATUS (*mlme_twt_pause_complete_cb)(
  189. struct wlan_objmgr_psoc *psoc,
  190. struct twt_pause_dialog_complete_event_param *event);
  191. QDF_STATUS (*mlme_twt_resume_complete_cb)(
  192. struct wlan_objmgr_psoc *psoc,
  193. struct twt_resume_dialog_complete_event_param *event);
  194. QDF_STATUS (*mlme_twt_nudge_complete_cb)(
  195. struct wlan_objmgr_psoc *psoc,
  196. struct twt_nudge_dialog_complete_event_param *event);
  197. QDF_STATUS (*mlme_twt_notify_complete_cb)(
  198. struct wlan_objmgr_psoc *psoc,
  199. struct twt_notify_event_param *event);
  200. };
  201. /**
  202. * struct vdev_mlme_ext_ops - VDEV MLME legacy callbacks structure
  203. * @mlme_psoc_ext_hdl_create: callback to invoke creation of
  204. * legacy psoc object
  205. * @mlme_psoc_ext_hdl_destroy: callback to invoke destroy of legacy
  206. * psoc object
  207. * @mlme_pdev_ext_hdl_create: callback to invoke creation of
  208. * legacy pdev object
  209. * @mlme_pdev_ext_hdl_destroy: callback to invoke destroy of legacy
  210. * pdev object
  211. * @mlme_vdev_ext_hdl_create: callback to invoke creation of
  212. * legacy vdev object
  213. * @mlme_vdev_ext_hdl_post_create: callback to invoke post creation
  214. * actions of legacy vdev object
  215. * @mlme_vdev_ext_hdl_destroy: callback to invoke destroy of legacy
  216. * vdev object
  217. * @mlme_vdev_start_fw_send: callback to invoke vdev start
  218. * command
  219. * @mlme_vdev_stop_fw_send: callback to invoke vdev stop command
  220. * @mlme_vdev_down_fw_send: callback to invoke vdev down command
  221. * @mlme_multivdev_restart_fw_send: callback to invoke multivdev restart
  222. * command
  223. * @mlme_vdev_enqueue_exp_cmd: callback to enqueue exception
  224. * command
  225. * required by serialization
  226. * @mlme_multi_vdev_restart_resp: callback to process multivdev
  227. * restart response
  228. * @mlme_cm_ext_hdl_create_cb: callback to create ext cm context
  229. * @mlme_cm_ext_hdl_destroy_cb: callback to destroy ext cm context
  230. * @mlme_cm_ext_connect_start_ind_cb: callback to indicate connect start
  231. * @mlme_cm_ext_bss_select_ind_cb: callback to indicate candidate
  232. * select for connect
  233. * @mlme_cm_ext_bss_peer_create_req_cb: callback to bss peer create request
  234. * @mlme_cm_ext_connect_req_cb: callback for connect request to
  235. * VDEV/PEER SM
  236. * @mlme_cm_ext_connect_complete_ind_cb: callback to indicate connect
  237. * complete
  238. * @mlme_cm_ext_disconnect_start_ind_cb : callback to indicate disconnect
  239. * start
  240. * @mlme_cm_ext_disconnect_req_cb: callback to disconnect req to
  241. * VDEV/PEER SM
  242. * @mlme_cm_ext_bss_peer_delete_req_cb: callback to bss peer delete request
  243. * @mlme_cm_ext_disconnect_complete_ind_cb: callback to indicate disconnect
  244. * complete
  245. * @mlme_cm_ext_vdev_down_req_cb: callback to send vdev down to FW
  246. * @mlme_cm_ext_roam_start_ind_cb: callback to indicate roam start
  247. * @mlme_cm_ext_rso_stop_cb: callback to send rso stop to FW
  248. * @mlme_cm_ext_reassoc_req_cb: callback for reassoc request to
  249. * VDEV/PEER SM
  250. * @mlme_vdev_send_set_mac_addr: callback to send set MAC address
  251. * request to FW
  252. */
  253. struct mlme_ext_ops {
  254. QDF_STATUS (*mlme_psoc_ext_hdl_create)(
  255. struct psoc_mlme_obj *psoc_mlme);
  256. QDF_STATUS (*mlme_psoc_ext_hdl_destroy)(
  257. struct psoc_mlme_obj *pdev_mlme);
  258. QDF_STATUS (*mlme_pdev_ext_hdl_create)(
  259. struct pdev_mlme_obj *pdev_mlme);
  260. QDF_STATUS (*mlme_pdev_ext_hdl_destroy)(
  261. struct pdev_mlme_obj *pdev_mlme);
  262. QDF_STATUS (*mlme_vdev_ext_hdl_create)(
  263. struct vdev_mlme_obj *vdev_mlme);
  264. QDF_STATUS (*mlme_vdev_ext_hdl_post_create)(
  265. struct vdev_mlme_obj *vdev_mlme);
  266. QDF_STATUS (*mlme_vdev_ext_hdl_destroy)(
  267. struct vdev_mlme_obj *vdev_mlme);
  268. QDF_STATUS (*mlme_vdev_start_fw_send)(
  269. struct wlan_objmgr_vdev *vdev, uint8_t restart);
  270. QDF_STATUS (*mlme_vdev_stop_fw_send)(struct wlan_objmgr_vdev *vdev);
  271. QDF_STATUS (*mlme_vdev_down_fw_send)(struct wlan_objmgr_vdev *vdev);
  272. QDF_STATUS (*mlme_multivdev_restart_fw_send)(
  273. struct wlan_objmgr_pdev *pdev);
  274. QDF_STATUS (*mlme_vdev_enqueue_exp_cmd)(
  275. struct vdev_mlme_obj *vdev_mlme,
  276. uint8_t cmd_type);
  277. QDF_STATUS (*mlme_vdev_ext_delete_rsp)(
  278. struct wlan_objmgr_psoc *psoc,
  279. struct vdev_delete_response *rsp);
  280. QDF_STATUS (*mlme_multi_vdev_restart_resp)(
  281. struct wlan_objmgr_psoc *psoc,
  282. struct multi_vdev_restart_resp *resp);
  283. QDF_STATUS (*mlme_cm_ext_hdl_create_cb)(struct wlan_objmgr_vdev *vdev,
  284. cm_ext_t **ext_cm_ptr);
  285. QDF_STATUS (*mlme_cm_ext_hdl_destroy_cb)(struct wlan_objmgr_vdev *vdev,
  286. cm_ext_t *ext_cm_ptr);
  287. QDF_STATUS (*mlme_cm_ext_connect_start_ind_cb)(
  288. struct wlan_objmgr_vdev *vdev,
  289. struct wlan_cm_connect_req *req);
  290. QDF_STATUS (*mlme_cm_ext_bss_select_ind_cb)(
  291. struct wlan_objmgr_vdev *vdev,
  292. struct wlan_cm_vdev_connect_req *req);
  293. QDF_STATUS (*mlme_cm_ext_bss_peer_create_req_cb)(
  294. struct wlan_objmgr_vdev *vdev,
  295. struct qdf_mac_addr *peer_mac,
  296. struct qdf_mac_addr *mld_mac,
  297. bool is_assoc_link);
  298. QDF_STATUS (*mlme_cm_ext_connect_req_cb)(struct wlan_objmgr_vdev *vdev,
  299. struct wlan_cm_vdev_connect_req *req);
  300. QDF_STATUS (*mlme_cm_ext_connect_complete_ind_cb)(
  301. struct wlan_objmgr_vdev *vdev,
  302. struct wlan_cm_connect_resp *rsp);
  303. QDF_STATUS (*mlme_cm_ext_disconnect_start_ind_cb)(
  304. struct wlan_objmgr_vdev *vdev,
  305. struct wlan_cm_disconnect_req *req);
  306. QDF_STATUS (*mlme_cm_ext_disconnect_req_cb)
  307. (struct wlan_objmgr_vdev *vdev,
  308. struct wlan_cm_vdev_discon_req *req);
  309. QDF_STATUS (*mlme_cm_ext_bss_peer_delete_req_cb)(
  310. struct wlan_objmgr_vdev *vdev);
  311. QDF_STATUS (*mlme_cm_ext_disconnect_complete_ind_cb)(
  312. struct wlan_objmgr_vdev *vdev,
  313. struct wlan_cm_discon_rsp *rsp);
  314. QDF_STATUS (*mlme_cm_ext_vdev_down_req_cb)(
  315. struct wlan_objmgr_vdev *vdev);
  316. QDF_STATUS (*mlme_cm_ext_roam_start_ind_cb)(
  317. struct wlan_objmgr_vdev *vdev,
  318. struct wlan_cm_roam_req *req);
  319. QDF_STATUS (*mlme_cm_ext_rso_stop_cb)(struct wlan_objmgr_vdev *vdev);
  320. QDF_STATUS (*mlme_cm_ext_reassoc_req_cb)(
  321. struct wlan_objmgr_vdev *vdev,
  322. struct wlan_cm_vdev_reassoc_req *req);
  323. #ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
  324. QDF_STATUS (*mlme_vdev_send_set_mac_addr)(
  325. struct qdf_mac_addr mac_addr,
  326. struct qdf_mac_addr mld_addr,
  327. struct wlan_objmgr_vdev *vdev);
  328. #endif
  329. };
  330. /**
  331. * mlme_psoc_ops_ext_hdl_create() - Alloc PSOC mlme ext handle
  332. * @psoc_mlme: PSOC MLME comp object
  333. *
  334. * API to allocate PSOC MLME ext handle
  335. *
  336. * Return: SUCCESS on successful allocation
  337. * Else FAILURE
  338. */
  339. QDF_STATUS mlme_psoc_ops_ext_hdl_create(struct psoc_mlme_obj *psoc_mlme);
  340. /**
  341. * mlme_psoc_ops_ext_hdl_destroy() - Destroy PSOC mlme ext handle
  342. * @psoc_mlme: PSOC MLME comp object
  343. *
  344. * API to free psoc MLME ext handle
  345. *
  346. * Return: SUCCESS on successful free
  347. * Else FAILURE
  348. */
  349. QDF_STATUS mlme_psoc_ops_ext_hdl_destroy(struct psoc_mlme_obj *psoc_mlme);
  350. /**
  351. * mlme_pdev_ops_ext_hdl_create - Alloc PDEV mlme ext handle
  352. * @pdev_mlme_obj: PDEV MLME comp object
  353. *
  354. * API to allocate PDEV MLME ext handle
  355. *
  356. * Return: SUCCESS on successful allocation
  357. * Else FAILURE
  358. */
  359. QDF_STATUS mlme_pdev_ops_ext_hdl_create(struct pdev_mlme_obj *pdev_mlme);
  360. /**
  361. * mlme_pdev_ops_ext_hdl_destroy - Destroy PDEV mlme ext handle
  362. * @pdev_mlme_obj: PDEV MLME comp object
  363. *
  364. * API to free pdev MLME ext handle
  365. *
  366. * Return: SUCCESS on successful free
  367. * Else FAILURE
  368. */
  369. QDF_STATUS mlme_pdev_ops_ext_hdl_destroy(struct pdev_mlme_obj *pdev_mlme);
  370. /**
  371. * mlme_vdev_ops_ext_hdl_create - Alloc VDEV mlme ext handle
  372. * @vdev_mlme_obj: VDEV MLME comp object
  373. *
  374. * API to allocate VDEV MLME ext handle
  375. *
  376. * Return: SUCCESS on successful allocation
  377. * Else FAILURE
  378. */
  379. QDF_STATUS mlme_vdev_ops_ext_hdl_create(struct vdev_mlme_obj *vdev_mlme);
  380. /**
  381. * mlme_vdev_ops_ext_hdl_post_create - Perform post VDEV mlme ext handle alloc
  382. * operations
  383. * @vdev_mlme_obj: VDEV MLME comp object
  384. *
  385. * API to perform post vdev MLME ext handle allocation operations
  386. *
  387. * Return: SUCCESS on initialization successful
  388. * Else FAILURE
  389. */
  390. QDF_STATUS mlme_vdev_ops_ext_hdl_post_create(struct vdev_mlme_obj *vdev_mlme);
  391. /**
  392. * mlme_vdev_ops_ext_hdl_destroy - Destroy VDEV mlme ext handle
  393. * @vdev_mlme_obj: VDEV MLME comp object
  394. *
  395. * API to free vdev MLME ext handle
  396. *
  397. * Return: SUCCESS on successful free
  398. * Else FAILURE
  399. */
  400. QDF_STATUS mlme_vdev_ops_ext_hdl_destroy(struct vdev_mlme_obj *vdev_mlme);
  401. /**
  402. * mlme_vdev_enqueue_exp_ser_cmd - Enqueue exception serialization cmd
  403. * @vdev_mlme_obj: VDEV MLME comp object
  404. * @cmd_type: Serialization command type
  405. *
  406. * API to enqueue the exception serialization command, used by
  407. * mlme-serialization wrapper layer
  408. *
  409. * Return: SUCCESS on successful enqueuing the command
  410. * Else FAILURE
  411. */
  412. QDF_STATUS mlme_vdev_enqueue_exp_ser_cmd(struct vdev_mlme_obj *vdev_mlme,
  413. uint8_t cmd_type);
  414. /**
  415. * mlme_vdev_ops_start_fw_send - Send WMI START/RESTART commmand to FW
  416. * @vdev: VDEV object
  417. *
  418. * API to send WMI start/restart command to FW
  419. *
  420. * Return: SUCCESS on successful sending the command
  421. * Else FAILURE
  422. */
  423. QDF_STATUS mlme_vdev_ops_start_fw_send(struct wlan_objmgr_vdev *vdev,
  424. uint8_t restart);
  425. /**
  426. * mlme_vdev_ops_multivdev_restart_fw_cmd_send - Send WMI Multivdev restart
  427. * commmand to FW
  428. * @pdev: PDEV object
  429. *
  430. * API to send WMI multivdev restart command to FW
  431. *
  432. * Return: SUCCESS on successful sending the command
  433. * Else FAILURE
  434. */
  435. QDF_STATUS mlme_vdev_ops_multivdev_restart_fw_cmd_send(
  436. struct wlan_objmgr_pdev *pdev);
  437. /**
  438. * mlme_vdev_ops_stop_fw_send - Send WMI STOP commmand to FW
  439. * @vdev: VDEV object
  440. *
  441. * API to send WMI stop command to FW
  442. *
  443. * Return: SUCCESS on successful sending the command
  444. * Else FAILURE
  445. */
  446. QDF_STATUS mlme_vdev_ops_stop_fw_send(struct wlan_objmgr_vdev *vdev);
  447. /**
  448. * mlme_vdev_ops_down_fw_send - Send WMI Down commmand to FW
  449. * @vdev: VDEV object
  450. *
  451. * API to send WMI down command to FW
  452. *
  453. * Return: SUCCESS on successful sending the command
  454. * Else FAILURE
  455. */
  456. QDF_STATUS mlme_vdev_ops_down_fw_send(struct wlan_objmgr_vdev *vdev);
  457. /*
  458. * mlme_vdev_ops_ext_hdl_multivdev_restart_resp() - Handler multivdev restart
  459. * response event
  460. * @psoc: PSOC object manager handle
  461. * @resp: Restart response event
  462. *
  463. * Return: Success on successful handling of the response event,
  464. * Else failure
  465. */
  466. QDF_STATUS mlme_vdev_ops_ext_hdl_multivdev_restart_resp(
  467. struct wlan_objmgr_psoc *psoc,
  468. struct multi_vdev_restart_resp *resp);
  469. /**
  470. * mlme_set_ops_register_cb - Sets ops registration callback
  471. * @ops_cb: Function pointer
  472. *
  473. * API to set ops registration call back
  474. *
  475. * Return: void
  476. */
  477. typedef struct mlme_ext_ops *(*mlme_get_global_ops_cb)(void);
  478. void mlme_set_ops_register_cb(mlme_get_global_ops_cb ops_cb);
  479. /**
  480. * wlan_cmn_mlme_init - Initializes MLME component
  481. *
  482. * Registers callbacks with object manager for create/destroy
  483. *
  484. * Return: SUCCESS on successful registration
  485. * FAILURE, if registration fails
  486. */
  487. QDF_STATUS wlan_cmn_mlme_init(void);
  488. /**
  489. * wlan_cmn_mlme_deinit - Uninitializes MLME component
  490. *
  491. * Unregisters callbacks with object manager for create/destroy
  492. *
  493. * Return: SUCCESS on successful registration
  494. * FAILURE, if registration fails
  495. */
  496. QDF_STATUS wlan_cmn_mlme_deinit(void);
  497. /**
  498. * mlme_vdev_ops_ext_hdl_delete_rsp - Vdev Delete response ext handler
  499. * @psoc: PSOC object
  500. * @rsp: Vdev delete response received from the firmware
  501. *
  502. * API to invoke the legacy delete response handler for legacy cleanup
  503. *
  504. * Return: SUCCESS on successful deletion
  505. * FAILURE, if deletion fails
  506. */
  507. QDF_STATUS mlme_vdev_ops_ext_hdl_delete_rsp(struct wlan_objmgr_psoc *psoc,
  508. struct vdev_delete_response *rsp);
  509. /**
  510. * mlme_cm_ext_hdl_create() - Connection manager callback to create ext
  511. * context
  512. * @vdev: VDEV object
  513. * @ext_cm_ptr: pointer to connection manager ext pointer
  514. *
  515. * Return: QDF_STATUS
  516. */
  517. QDF_STATUS mlme_cm_ext_hdl_create(struct wlan_objmgr_vdev *vdev,
  518. cm_ext_t **ext_cm_ptr);
  519. /**
  520. * mlme_cm_ext_hdl_destroy() - Connection manager callback to destroy ext
  521. * context
  522. * @vdev: VDEV object
  523. * @ext_cm_ptr: connection manager ext pointer
  524. *
  525. * Return: QDF_STATUS
  526. */
  527. QDF_STATUS mlme_cm_ext_hdl_destroy(struct wlan_objmgr_vdev *vdev,
  528. cm_ext_t *ext_cm_ptr);
  529. /**
  530. * mlme_cm_connect_start_ind() - Connection manager ext Connect start indication
  531. * @vdev: VDEV object
  532. * @req: Connection manager connect request
  533. *
  534. * Return: QDF_STATUS
  535. */
  536. QDF_STATUS mlme_cm_connect_start_ind(struct wlan_objmgr_vdev *vdev,
  537. struct wlan_cm_connect_req *req);
  538. /**
  539. * mlme_cm_bss_select_ind() - Connection manager ext Connect candidate
  540. * select indication, to do operations for the candidate
  541. * @vdev: VDEV object
  542. * @req: Vdev connect request
  543. *
  544. * Return: QDF_STATUS
  545. */
  546. QDF_STATUS mlme_cm_bss_select_ind(struct wlan_objmgr_vdev *vdev,
  547. struct wlan_cm_vdev_connect_req *req);
  548. /**
  549. * mlme_cm_bss_peer_create_req() - Connection manager ext bss peer create
  550. * request
  551. * @vdev: VDEV object
  552. * @peer_mac: Peer mac address
  553. * @mld_mac: mld mac address
  554. * @is_assoc_link: assoc happens on this link or not
  555. *
  556. * Return: QDF_STATUS
  557. */
  558. QDF_STATUS mlme_cm_bss_peer_create_req(struct wlan_objmgr_vdev *vdev,
  559. struct qdf_mac_addr *peer_mac,
  560. struct qdf_mac_addr *mld_mac,
  561. bool is_assoc_link);
  562. /**
  563. * mlme_cm_connect_req() - Connection manager ext connect request to start vdev
  564. * and peer assoc state machine
  565. * @vdev: VDEV object
  566. * @req: Vdev connect request
  567. *
  568. * Context: The req is on stack, so the API need to make a copy, if it want to
  569. * use the req after return.
  570. *
  571. * Return: QDF_STATUS
  572. */
  573. QDF_STATUS mlme_cm_connect_req(struct wlan_objmgr_vdev *vdev,
  574. struct wlan_cm_vdev_connect_req *req);
  575. /**
  576. * mlme_cm_connect_complete_ind() - Connection manager ext connect complete
  577. * indication
  578. * @vdev: VDEV object
  579. * @rsp: Connection manager connect response
  580. *
  581. * Return: QDF_STATUS
  582. */
  583. QDF_STATUS mlme_cm_connect_complete_ind(struct wlan_objmgr_vdev *vdev,
  584. struct wlan_cm_connect_resp *rsp);
  585. /**
  586. * mlme_cm_roam_start_ind() - Connection manager ext Connect start indication
  587. * @vdev: VDEV object
  588. * @req: Connection manager roam request
  589. *
  590. * Return: QDF_STATUS
  591. */
  592. QDF_STATUS mlme_cm_roam_start_ind(struct wlan_objmgr_vdev *vdev,
  593. struct wlan_cm_roam_req *req);
  594. /**
  595. * mlme_cm_rso_stop_req() - Connection manager ext RSO stop request
  596. * @vdev: VDEV object
  597. *
  598. * Return: QDF_STATUS
  599. */
  600. QDF_STATUS mlme_cm_rso_stop_req(struct wlan_objmgr_vdev *vdev);
  601. /**
  602. * mlme_cm_reassoc_req() - Connection manager ext reassoc request
  603. * @vdev: VDEV object
  604. * @req: Vdev reassoc request
  605. *
  606. * Context: The req is on stack, so the API need to make a copy, if it want to
  607. * use the req after return.
  608. *
  609. * Return: QDF_STATUS
  610. */
  611. QDF_STATUS mlme_cm_reassoc_req(struct wlan_objmgr_vdev *vdev,
  612. struct wlan_cm_vdev_reassoc_req *req);
  613. /**
  614. * mlme_cm_disconnect_start_ind() - Connection manager ext disconnect start
  615. * indication
  616. * @vdev: VDEV object
  617. * @req: Connection manager disconnect request
  618. *
  619. * Return: QDF_STATUS
  620. */
  621. QDF_STATUS mlme_cm_disconnect_start_ind(struct wlan_objmgr_vdev *vdev,
  622. struct wlan_cm_disconnect_req *req);
  623. /**
  624. * mlme_cm_disconnect_req() - Connection manager ext disconnect
  625. * req to vdev and peer sm
  626. * @vdev: VDEV object
  627. * @req: vdev disconnect request
  628. *
  629. * Return: QDF_STATUS
  630. */
  631. QDF_STATUS mlme_cm_disconnect_req(struct wlan_objmgr_vdev *vdev,
  632. struct wlan_cm_vdev_discon_req *req);
  633. /**
  634. * mlme_cm_bss_peer_delete_req() - Connection manager ext bss peer delete
  635. * request
  636. * @vdev: VDEV object
  637. *
  638. * Return: QDF_STATUS
  639. */
  640. QDF_STATUS
  641. mlme_cm_bss_peer_delete_req(struct wlan_objmgr_vdev *vdev);
  642. /**
  643. * mlme_cm_disconnect_complete_ind() - Connection manager ext disconnect
  644. * complete indication
  645. * @vdev: VDEV object
  646. * @rsp: Connection manager disconnect response
  647. *
  648. * Return: QDF_STATUS
  649. */
  650. QDF_STATUS mlme_cm_disconnect_complete_ind(struct wlan_objmgr_vdev *vdev,
  651. struct wlan_cm_discon_rsp *rsp);
  652. /**
  653. * mlme_cm_vdev_down() - Connection manager ext req to send vdev down to FW
  654. * @vdev: VDEV object
  655. *
  656. * Return: QDF_STATUS
  657. */
  658. QDF_STATUS mlme_cm_vdev_down_req(struct wlan_objmgr_vdev *vdev);
  659. /**
  660. * mlme_cm_osif_connect_complete() - Connect complete resp to osif
  661. * @vdev: vdev pointer
  662. * @rsp: Connect response
  663. *
  664. * Return: QDF_STATUS
  665. */
  666. QDF_STATUS mlme_cm_osif_connect_complete(struct wlan_objmgr_vdev *vdev,
  667. struct wlan_cm_connect_resp *rsp);
  668. /**
  669. * mlme_cm_osif_failed_candidate_ind() - Failed Candidate indication to osif
  670. * @vdev: vdev pointer
  671. * @rsp: Connect response
  672. *
  673. * Return: QDF_STATUS
  674. */
  675. QDF_STATUS
  676. mlme_cm_osif_failed_candidate_ind(struct wlan_objmgr_vdev *vdev,
  677. struct wlan_cm_connect_resp *rsp);
  678. /**
  679. * mlme_cm_osif_update_id_and_src() - Update connection id and source to osif
  680. * @vdev: vdev pointer
  681. * @source: source of request
  682. * @cm_id: connection manager id
  683. *
  684. * Return: QDF_STATUS
  685. */
  686. QDF_STATUS mlme_cm_osif_update_id_and_src(struct wlan_objmgr_vdev *vdev,
  687. enum wlan_cm_source source,
  688. wlan_cm_id cm_id);
  689. /**
  690. * mlme_cm_osif_disconnect_complete() - Disconnect complete osif response
  691. * @vdev: vdev pointer
  692. * @cm_conn_rsp: Connect response
  693. *
  694. * Return: QDF_STATUS
  695. */
  696. QDF_STATUS
  697. mlme_cm_osif_disconnect_complete(struct wlan_objmgr_vdev *vdev,
  698. struct wlan_cm_discon_rsp *rsp);
  699. /**
  700. * mlme_cm_osif_disconnect_start_ind() - osif Disconnect start indication
  701. * @vdev: vdev pointer
  702. * @cm_conn_rsp: Connect response
  703. *
  704. * Return: QDF_STATUS
  705. */
  706. QDF_STATUS mlme_cm_osif_disconnect_start_ind(struct wlan_objmgr_vdev *vdev);
  707. #ifdef CONN_MGR_ADV_FEATURE
  708. /**
  709. * mlme_cm_osif_roam_sync_ind() - osif Roam sync indication
  710. * @vdev: vdev pointer
  711. *
  712. * Return: QDF_STATUS
  713. */
  714. QDF_STATUS mlme_cm_osif_roam_sync_ind(struct wlan_objmgr_vdev *vdev);
  715. /**
  716. * mlme_cm_osif_pmksa_candidate_notify() - osif roam pmksa candidate notify
  717. * @vdev: vdev pointer
  718. * @bssid: bssid
  719. * @index: index
  720. * @preauth: preauth flag
  721. *
  722. * Return: QDF_STATUS
  723. */
  724. QDF_STATUS mlme_cm_osif_pmksa_candidate_notify(struct wlan_objmgr_vdev *vdev,
  725. struct qdf_mac_addr *bssid,
  726. int index, bool preauth);
  727. #else
  728. static inline
  729. QDF_STATUS mlme_cm_osif_roam_sync_ind(struct wlan_objmgr_vdev *vdev)
  730. {
  731. return QDF_STATUS_SUCCESS;
  732. }
  733. #endif
  734. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  735. /**
  736. * mlme_cm_osif_roam_start_ind() - osif Roam start indication
  737. * @vdev: vdev pointer
  738. *
  739. * Return: QDF_STATUS
  740. */
  741. QDF_STATUS mlme_cm_osif_roam_start_ind(struct wlan_objmgr_vdev *vdev);
  742. /**
  743. * mlme_cm_osif_roam_abort_ind() - osif Roam abort indication
  744. * @vdev: vdev pointer
  745. *
  746. * Return: QDF_STATUS
  747. */
  748. QDF_STATUS mlme_cm_osif_roam_abort_ind(struct wlan_objmgr_vdev *vdev);
  749. /**
  750. * mlme_cm_osif_roam_complete() - osif Roam sync complete callback
  751. * @vdev: vdev pointer
  752. *
  753. * Return: QDF_STATUS
  754. */
  755. QDF_STATUS mlme_cm_osif_roam_complete(struct wlan_objmgr_vdev *vdev);
  756. #endif
  757. #ifdef WLAN_FEATURE_PREAUTH_ENABLE
  758. /**
  759. * mlme_cm_osif_ft_preauth_complete() - osif roam ft preauth complete callback
  760. * @vdev: vdev pointer
  761. * @rsp: preauth response pointer
  762. *
  763. * Return: QDF_STATUS
  764. */
  765. QDF_STATUS
  766. mlme_cm_osif_ft_preauth_complete(struct wlan_objmgr_vdev *vdev,
  767. struct wlan_preauth_rsp *rsp);
  768. #ifdef FEATURE_WLAN_ESE
  769. /**
  770. * mlme_cm_osif_cckm_preauth_complete() - osif cckm preauth complete callback
  771. * @vdev: vdev pointer
  772. * @rsp: preauth response pointer
  773. *
  774. * Return: QDF_STATUS
  775. */
  776. QDF_STATUS
  777. mlme_cm_osif_cckm_preauth_complete(struct wlan_objmgr_vdev *vdev,
  778. struct wlan_preauth_rsp *rsp);
  779. #else
  780. static inline QDF_STATUS
  781. mlme_cm_osif_cckm_preauth_complete(struct wlan_objmgr_vdev *vdev,
  782. struct wlan_preauth_rsp *rsp)
  783. {
  784. return QDF_STATUS_SUCCESS;
  785. }
  786. #endif /* FEATURE_WLAN_ESE */
  787. #endif /* WLAN_FEATURE_PREAUTH_ENABLE */
  788. /**
  789. * typedef osif_cm_get_global_ops_cb() - Callback to get connection manager
  790. * global ops
  791. */
  792. typedef struct mlme_cm_ops *(*osif_cm_get_global_ops_cb)(void);
  793. /**
  794. * typedef osif_twt_get_global_ops_cb() - Callback to get twt global ops
  795. */
  796. typedef struct mlme_twt_ops *(*osif_twt_get_global_ops_cb)(void);
  797. /**
  798. * mlme_set_osif_cm_cb() - Sets ops registration callback
  799. * @cm_osif_ops: Function pointer
  800. *
  801. * API to set ops registration call back
  802. *
  803. * Return: void
  804. */
  805. void mlme_set_osif_cm_cb(osif_cm_get_global_ops_cb cm_osif_ops);
  806. /**
  807. * typedef osif_vdev_mgr_get_global_ops_cb() - Callback to get vdev manager
  808. * global ops
  809. */
  810. typedef struct mlme_vdev_mgr_ops *(*osif_vdev_mgr_get_global_ops_cb)(void);
  811. /**
  812. * mlme_set_osif_vdev_mgr_cb() - Sets ops registration callback
  813. * @mlme_vdev_mgr_osif_ops: Function pointer
  814. *
  815. * API to set ops registration call back
  816. *
  817. * Return: void
  818. */
  819. void mlme_set_osif_vdev_mgr_cb(
  820. osif_vdev_mgr_get_global_ops_cb mlme_vdev_mgr_osif_ops);
  821. /**
  822. * mlme_set_osif_twt_cb() - Sets twt ops registration callback
  823. * @twt_osif_ops: Function pointer
  824. *
  825. * API to set twt ops registration call back
  826. *
  827. * Return: void
  828. */
  829. void mlme_set_osif_twt_cb(osif_twt_get_global_ops_cb twt_osif_ops);
  830. /**
  831. * mlme_max_chan_switch_is_set() - Get if max chan switch IE is enabled
  832. * @vdev: Object manager vdev pointer
  833. *
  834. * Return: True if max chan switch is enabled else false
  835. */
  836. bool mlme_max_chan_switch_is_set(struct wlan_objmgr_psoc *psoc);
  837. #ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
  838. /**
  839. * mlme_vdev_ops_send_set_mac_address() - Send set MAC address request to FW
  840. * @mac_addr: VDEV MAC address
  841. * @mld_addr: VDEV MLD address
  842. * @vdev: vdev pointer
  843. *
  844. * API to send set MAC address request command to FW
  845. *
  846. * Return: QDF_STATUS
  847. */
  848. QDF_STATUS mlme_vdev_ops_send_set_mac_address(struct qdf_mac_addr mac_addr,
  849. struct qdf_mac_addr mld_addr,
  850. struct wlan_objmgr_vdev *vdev);
  851. /**
  852. * mlme_vdev_mgr_notify_set_mac_addr_response() - Notify set MAC address
  853. * response
  854. * @vdev_id: VDEV ID
  855. * @resp_status: FW response for the set MAC address operation
  856. *
  857. * API to notify set MAC address to osif
  858. *
  859. * Return: None
  860. */
  861. void mlme_vdev_mgr_notify_set_mac_addr_response(uint8_t vdev_id,
  862. uint8_t resp_status);
  863. #endif
  864. #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
  865. /**
  866. * mlme_twt_osif_enable_complete_ind() - enable complete resp to osif
  867. * @psoc: psoc pointer
  868. * @event: enable complete response
  869. *
  870. * Return: QDF_STATUS
  871. */
  872. QDF_STATUS
  873. mlme_twt_osif_enable_complete_ind(struct wlan_objmgr_psoc *psoc,
  874. struct twt_enable_complete_event_param *event,
  875. void *context);
  876. /**
  877. * mlme_twt_osif_disable_complete_ind() - disable complete resp to osif
  878. * @psoc: psoc pointer
  879. * @event: disable complete response
  880. *
  881. * Return: QDF_STATUS
  882. */
  883. QDF_STATUS
  884. mlme_twt_osif_disable_complete_ind(struct wlan_objmgr_psoc *psoc,
  885. struct twt_disable_complete_event_param *event,
  886. void *context);
  887. /**
  888. * mlme_twt_osif_ack_complete_ind() - ack complete resp to osif
  889. * @psoc: psoc pointer
  890. * @event: ack complete response
  891. *
  892. * Return: QDF_STATUS
  893. */
  894. QDF_STATUS
  895. mlme_twt_osif_ack_complete_ind(struct wlan_objmgr_psoc *psoc,
  896. struct twt_ack_complete_event_param *event,
  897. void *context);
  898. /**
  899. * mlme_twt_osif_setup_complete_ind() - setup complete resp to osif
  900. * @psoc: psoc pointer
  901. * @event: setup complete response
  902. * @renego_fail: flag to indicate if renegotiation failure case
  903. *
  904. * Return: QDF_STATUS
  905. */
  906. QDF_STATUS
  907. mlme_twt_osif_setup_complete_ind(struct wlan_objmgr_psoc *psoc,
  908. struct twt_add_dialog_complete_event *event,
  909. bool renego_fail);
  910. /**
  911. * mlme_twt_osif_teardown_complete_ind() - teardown complete resp to osif
  912. * @psoc: psoc pointer
  913. * @event: teardown complete response
  914. *
  915. * Return: QDF_STATUS
  916. */
  917. QDF_STATUS
  918. mlme_twt_osif_teardown_complete_ind(struct wlan_objmgr_psoc *psoc,
  919. struct twt_del_dialog_complete_event_param *event);
  920. /**
  921. * mlme_twt_osif_pause_complete_ind() - pause complete resp to osif
  922. * @psoc: psoc pointer
  923. * @event: pause complete response
  924. *
  925. * Return: QDF_STATUS
  926. */
  927. QDF_STATUS
  928. mlme_twt_osif_pause_complete_ind(struct wlan_objmgr_psoc *psoc,
  929. struct twt_pause_dialog_complete_event_param *event);
  930. /**
  931. * mlme_twt_osif_resume_complete_ind() - resume complete resp to osif
  932. * @psoc: psoc pointer
  933. * @event: resume complete response
  934. *
  935. * Return: QDF_STATUS
  936. */
  937. QDF_STATUS
  938. mlme_twt_osif_resume_complete_ind(struct wlan_objmgr_psoc *psoc,
  939. struct twt_resume_dialog_complete_event_param *event);
  940. /**
  941. * mlme_twt_osif_nudge_complete_ind() - nudge complete resp to osif
  942. * @psoc: psoc pointer
  943. * @event: nudge complete response
  944. *
  945. * Return: QDF_STATUS
  946. */
  947. QDF_STATUS
  948. mlme_twt_osif_nudge_complete_ind(struct wlan_objmgr_psoc *psoc,
  949. struct twt_nudge_dialog_complete_event_param *event);
  950. /**
  951. * mlme_twt_osif_notify_complete_ind() - notify complete resp to osif
  952. * @psoc: psoc pointer
  953. * @event: notify complete response
  954. *
  955. * Return: QDF_STATUS
  956. */
  957. QDF_STATUS
  958. mlme_twt_osif_notify_complete_ind(struct wlan_objmgr_psoc *psoc,
  959. struct twt_notify_event_param *event);
  960. #else
  961. static inline QDF_STATUS
  962. mlme_twt_osif_enable_complete_ind(struct wlan_objmgr_psoc *psoc,
  963. struct twt_enable_complete_event_param *event,
  964. void *context)
  965. {
  966. return QDF_STATUS_SUCCESS;
  967. }
  968. static inline QDF_STATUS
  969. mlme_twt_osif_disable_complete_ind(struct wlan_objmgr_psoc *psoc,
  970. struct twt_disable_complete_event_param *event,
  971. void *context)
  972. {
  973. return QDF_STATUS_SUCCESS;
  974. }
  975. static inline QDF_STATUS
  976. mlme_twt_osif_ack_complete_ind(struct wlan_objmgr_psoc *psoc,
  977. struct twt_ack_complete_event_param *event,
  978. void *context)
  979. {
  980. return QDF_STATUS_SUCCESS;
  981. }
  982. static inline QDF_STATUS
  983. mlme_twt_osif_setup_complete_ind(struct wlan_objmgr_psoc *psoc,
  984. struct twt_add_dialog_complete_event *event,
  985. bool renego_fail)
  986. {
  987. return QDF_STATUS_SUCCESS;
  988. }
  989. static inline QDF_STATUS
  990. mlme_twt_osif_teardown_complete_ind(struct wlan_objmgr_psoc *psoc,
  991. struct twt_del_dialog_complete_event_param *event)
  992. {
  993. return QDF_STATUS_SUCCESS;
  994. }
  995. static inline QDF_STATUS
  996. mlme_twt_osif_pause_complete_ind(struct wlan_objmgr_psoc *psoc,
  997. struct twt_pause_dialog_complete_event_param *event)
  998. {
  999. return QDF_STATUS_SUCCESS;
  1000. }
  1001. static inline QDF_STATUS
  1002. mlme_twt_osif_resume_complete_ind(struct wlan_objmgr_psoc *psoc,
  1003. struct twt_resume_dialog_complete_event_param *event)
  1004. {
  1005. return QDF_STATUS_SUCCESS;
  1006. }
  1007. static inline QDF_STATUS
  1008. mlme_twt_osif_nudge_complete_ind(struct wlan_objmgr_psoc *psoc,
  1009. struct twt_nudge_dialog_complete_event_param *event)
  1010. {
  1011. return QDF_STATUS_SUCCESS;
  1012. }
  1013. static inline QDF_STATUS
  1014. mlme_twt_osif_notify_complete_ind(struct wlan_objmgr_psoc *psoc,
  1015. struct twt_notify_event_param *event)
  1016. {
  1017. return QDF_STATUS_SUCCESS;
  1018. }
  1019. #endif /* WLAN_SUPPORT_TWT && WLAN_TWT_CONV_SUPPORTED */
  1020. #endif