wlan_mlme_cmn.h 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  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. QDF_STATUS (*mlme_twt_vdev_create_cb)(
  201. struct wlan_objmgr_vdev *vdev);
  202. QDF_STATUS (*mlme_twt_vdev_destroy_cb)(
  203. struct wlan_objmgr_vdev *vdev);
  204. };
  205. /**
  206. * struct vdev_mlme_ext_ops - VDEV MLME legacy callbacks structure
  207. * @mlme_psoc_ext_hdl_create: callback to invoke creation of
  208. * legacy psoc object
  209. * @mlme_psoc_ext_hdl_destroy: callback to invoke destroy of legacy
  210. * psoc object
  211. * @mlme_pdev_ext_hdl_create: callback to invoke creation of
  212. * legacy pdev object
  213. * @mlme_pdev_ext_hdl_destroy: callback to invoke destroy of legacy
  214. * pdev object
  215. * @mlme_vdev_ext_hdl_create: callback to invoke creation of
  216. * legacy vdev object
  217. * @mlme_vdev_ext_hdl_post_create: callback to invoke post creation
  218. * actions of legacy vdev object
  219. * @mlme_vdev_ext_hdl_destroy: callback to invoke destroy of legacy
  220. * vdev object
  221. * @mlme_vdev_start_fw_send: callback to invoke vdev start
  222. * command
  223. * @mlme_vdev_stop_fw_send: callback to invoke vdev stop command
  224. * @mlme_vdev_down_fw_send: callback to invoke vdev down command
  225. * @mlme_multivdev_restart_fw_send: callback to invoke multivdev restart
  226. * command
  227. * @mlme_vdev_enqueue_exp_cmd: callback to enqueue exception
  228. * command
  229. * required by serialization
  230. * @mlme_multi_vdev_restart_resp: callback to process multivdev
  231. * restart response
  232. * @mlme_cm_ext_hdl_create_cb: callback to create ext cm context
  233. * @mlme_cm_ext_hdl_destroy_cb: callback to destroy ext cm context
  234. * @mlme_cm_ext_connect_start_ind_cb: callback to indicate connect start
  235. * @mlme_cm_ext_bss_select_ind_cb: callback to indicate candidate
  236. * select for connect
  237. * @mlme_cm_ext_bss_peer_create_req_cb: callback to bss peer create request
  238. * @mlme_cm_ext_connect_req_cb: callback for connect request to
  239. * VDEV/PEER SM
  240. * @mlme_cm_ext_connect_complete_ind_cb: callback to indicate connect
  241. * complete
  242. * @mlme_cm_ext_disconnect_start_ind_cb : callback to indicate disconnect
  243. * start
  244. * @mlme_cm_ext_disconnect_req_cb: callback to disconnect req to
  245. * VDEV/PEER SM
  246. * @mlme_cm_ext_bss_peer_delete_req_cb: callback to bss peer delete request
  247. * @mlme_cm_ext_disconnect_complete_ind_cb: callback to indicate disconnect
  248. * complete
  249. * @mlme_cm_ext_vdev_down_req_cb: callback to send vdev down to FW
  250. * @mlme_cm_ext_roam_start_ind_cb: callback to indicate roam start
  251. * @mlme_cm_ext_rso_stop_cb: callback to send rso stop to FW
  252. * @mlme_cm_ext_reassoc_req_cb: callback for reassoc request to
  253. * VDEV/PEER SM
  254. * @mlme_vdev_send_set_mac_addr: callback to send set MAC address
  255. * request to FW
  256. */
  257. struct mlme_ext_ops {
  258. QDF_STATUS (*mlme_psoc_ext_hdl_create)(
  259. struct psoc_mlme_obj *psoc_mlme);
  260. QDF_STATUS (*mlme_psoc_ext_hdl_destroy)(
  261. struct psoc_mlme_obj *pdev_mlme);
  262. QDF_STATUS (*mlme_pdev_ext_hdl_create)(
  263. struct pdev_mlme_obj *pdev_mlme);
  264. QDF_STATUS (*mlme_pdev_ext_hdl_destroy)(
  265. struct pdev_mlme_obj *pdev_mlme);
  266. QDF_STATUS (*mlme_vdev_ext_hdl_create)(
  267. struct vdev_mlme_obj *vdev_mlme);
  268. QDF_STATUS (*mlme_vdev_ext_hdl_post_create)(
  269. struct vdev_mlme_obj *vdev_mlme);
  270. QDF_STATUS (*mlme_vdev_ext_hdl_destroy)(
  271. struct vdev_mlme_obj *vdev_mlme);
  272. QDF_STATUS (*mlme_vdev_start_fw_send)(
  273. struct wlan_objmgr_vdev *vdev, uint8_t restart);
  274. QDF_STATUS (*mlme_vdev_stop_fw_send)(struct wlan_objmgr_vdev *vdev);
  275. QDF_STATUS (*mlme_vdev_down_fw_send)(struct wlan_objmgr_vdev *vdev);
  276. QDF_STATUS (*mlme_multivdev_restart_fw_send)(
  277. struct wlan_objmgr_pdev *pdev);
  278. QDF_STATUS (*mlme_vdev_enqueue_exp_cmd)(
  279. struct vdev_mlme_obj *vdev_mlme,
  280. uint8_t cmd_type);
  281. QDF_STATUS (*mlme_vdev_ext_delete_rsp)(
  282. struct wlan_objmgr_psoc *psoc,
  283. struct vdev_delete_response *rsp);
  284. QDF_STATUS (*mlme_multi_vdev_restart_resp)(
  285. struct wlan_objmgr_psoc *psoc,
  286. struct multi_vdev_restart_resp *resp);
  287. QDF_STATUS (*mlme_cm_ext_hdl_create_cb)(struct wlan_objmgr_vdev *vdev,
  288. cm_ext_t **ext_cm_ptr);
  289. QDF_STATUS (*mlme_cm_ext_hdl_destroy_cb)(struct wlan_objmgr_vdev *vdev,
  290. cm_ext_t *ext_cm_ptr);
  291. QDF_STATUS (*mlme_cm_ext_connect_start_ind_cb)(
  292. struct wlan_objmgr_vdev *vdev,
  293. struct wlan_cm_connect_req *req);
  294. QDF_STATUS (*mlme_cm_ext_bss_select_ind_cb)(
  295. struct wlan_objmgr_vdev *vdev,
  296. struct wlan_cm_vdev_connect_req *req);
  297. QDF_STATUS (*mlme_cm_ext_bss_peer_create_req_cb)(
  298. struct wlan_objmgr_vdev *vdev,
  299. struct qdf_mac_addr *peer_mac,
  300. struct qdf_mac_addr *mld_mac,
  301. bool is_assoc_link);
  302. QDF_STATUS (*mlme_cm_ext_connect_req_cb)(struct wlan_objmgr_vdev *vdev,
  303. struct wlan_cm_vdev_connect_req *req);
  304. QDF_STATUS (*mlme_cm_ext_connect_complete_ind_cb)(
  305. struct wlan_objmgr_vdev *vdev,
  306. struct wlan_cm_connect_resp *rsp);
  307. QDF_STATUS (*mlme_cm_ext_disconnect_start_ind_cb)(
  308. struct wlan_objmgr_vdev *vdev,
  309. struct wlan_cm_disconnect_req *req);
  310. QDF_STATUS (*mlme_cm_ext_disconnect_req_cb)
  311. (struct wlan_objmgr_vdev *vdev,
  312. struct wlan_cm_vdev_discon_req *req);
  313. QDF_STATUS (*mlme_cm_ext_bss_peer_delete_req_cb)(
  314. struct wlan_objmgr_vdev *vdev);
  315. QDF_STATUS (*mlme_cm_ext_disconnect_complete_ind_cb)(
  316. struct wlan_objmgr_vdev *vdev,
  317. struct wlan_cm_discon_rsp *rsp);
  318. QDF_STATUS (*mlme_cm_ext_vdev_down_req_cb)(
  319. struct wlan_objmgr_vdev *vdev);
  320. QDF_STATUS (*mlme_cm_ext_roam_start_ind_cb)(
  321. struct wlan_objmgr_vdev *vdev,
  322. struct wlan_cm_roam_req *req);
  323. QDF_STATUS (*mlme_cm_ext_rso_stop_cb)(struct wlan_objmgr_vdev *vdev);
  324. QDF_STATUS (*mlme_cm_ext_reassoc_req_cb)(
  325. struct wlan_objmgr_vdev *vdev,
  326. struct wlan_cm_vdev_reassoc_req *req);
  327. #ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
  328. QDF_STATUS (*mlme_vdev_send_set_mac_addr)(
  329. struct qdf_mac_addr mac_addr,
  330. struct qdf_mac_addr mld_addr,
  331. struct wlan_objmgr_vdev *vdev);
  332. #endif
  333. };
  334. /**
  335. * struct mlme_external_tx_ops - MLME external callbacks structure
  336. * @peer_ops: callback to invoke peer mlme ops from external module
  337. * @vdev_ops: callback to invoke vdev mlme ops from external module
  338. * @pdev_ops: callback to invoke pdev mlme ops from external module
  339. * @scan_db_iterate: callback to invoke scan database iterate
  340. */
  341. enum wlan_mlme_peer_param;
  342. enum wlan_mlme_vdev_param;
  343. enum wlan_mlme_pdev_param;
  344. struct mlme_external_tx_ops {
  345. QDF_STATUS (*peer_ops)(
  346. struct wlan_objmgr_peer *peer,
  347. enum wlan_mlme_peer_param type,
  348. void *data, void *ret);
  349. QDF_STATUS (*vdev_ops)(
  350. struct wlan_objmgr_vdev *vdev,
  351. enum wlan_mlme_vdev_param type,
  352. void *data, void *ret);
  353. QDF_STATUS (*pdev_ops)(
  354. struct wlan_objmgr_pdev *pdev,
  355. enum wlan_mlme_pdev_param type,
  356. void *data, void *ret);
  357. QDF_STATUS (*scan_db_iterate)(
  358. struct wlan_objmgr_pdev *pdev,
  359. scan_iterator_func handler, void *arg);
  360. };
  361. /**
  362. * mlme_psoc_ops_ext_hdl_create() - Alloc PSOC mlme ext handle
  363. * @psoc_mlme: PSOC MLME comp object
  364. *
  365. * API to allocate PSOC MLME ext handle
  366. *
  367. * Return: SUCCESS on successful allocation
  368. * Else FAILURE
  369. */
  370. QDF_STATUS mlme_psoc_ops_ext_hdl_create(struct psoc_mlme_obj *psoc_mlme);
  371. /**
  372. * mlme_psoc_ops_ext_hdl_destroy() - Destroy PSOC mlme ext handle
  373. * @psoc_mlme: PSOC MLME comp object
  374. *
  375. * API to free psoc MLME ext handle
  376. *
  377. * Return: SUCCESS on successful free
  378. * Else FAILURE
  379. */
  380. QDF_STATUS mlme_psoc_ops_ext_hdl_destroy(struct psoc_mlme_obj *psoc_mlme);
  381. /**
  382. * mlme_pdev_ops_ext_hdl_create - Alloc PDEV mlme ext handle
  383. * @pdev_mlme_obj: PDEV MLME comp object
  384. *
  385. * API to allocate PDEV MLME ext handle
  386. *
  387. * Return: SUCCESS on successful allocation
  388. * Else FAILURE
  389. */
  390. QDF_STATUS mlme_pdev_ops_ext_hdl_create(struct pdev_mlme_obj *pdev_mlme);
  391. /**
  392. * mlme_pdev_ops_ext_hdl_destroy - Destroy PDEV mlme ext handle
  393. * @pdev_mlme_obj: PDEV MLME comp object
  394. *
  395. * API to free pdev MLME ext handle
  396. *
  397. * Return: SUCCESS on successful free
  398. * Else FAILURE
  399. */
  400. QDF_STATUS mlme_pdev_ops_ext_hdl_destroy(struct pdev_mlme_obj *pdev_mlme);
  401. /**
  402. * mlme_vdev_ops_ext_hdl_create - Alloc VDEV mlme ext handle
  403. * @vdev_mlme_obj: VDEV MLME comp object
  404. *
  405. * API to allocate VDEV MLME ext handle
  406. *
  407. * Return: SUCCESS on successful allocation
  408. * Else FAILURE
  409. */
  410. QDF_STATUS mlme_vdev_ops_ext_hdl_create(struct vdev_mlme_obj *vdev_mlme);
  411. /**
  412. * mlme_vdev_ops_ext_hdl_post_create - Perform post VDEV mlme ext handle alloc
  413. * operations
  414. * @vdev_mlme_obj: VDEV MLME comp object
  415. *
  416. * API to perform post vdev MLME ext handle allocation operations
  417. *
  418. * Return: SUCCESS on initialization successful
  419. * Else FAILURE
  420. */
  421. QDF_STATUS mlme_vdev_ops_ext_hdl_post_create(struct vdev_mlme_obj *vdev_mlme);
  422. /**
  423. * mlme_vdev_ops_ext_hdl_destroy - Destroy VDEV mlme ext handle
  424. * @vdev_mlme_obj: VDEV MLME comp object
  425. *
  426. * API to free vdev MLME ext handle
  427. *
  428. * Return: SUCCESS on successful free
  429. * Else FAILURE
  430. */
  431. QDF_STATUS mlme_vdev_ops_ext_hdl_destroy(struct vdev_mlme_obj *vdev_mlme);
  432. /**
  433. * mlme_vdev_enqueue_exp_ser_cmd - Enqueue exception serialization cmd
  434. * @vdev_mlme_obj: VDEV MLME comp object
  435. * @cmd_type: Serialization command type
  436. *
  437. * API to enqueue the exception serialization command, used by
  438. * mlme-serialization wrapper layer
  439. *
  440. * Return: SUCCESS on successful enqueuing the command
  441. * Else FAILURE
  442. */
  443. QDF_STATUS mlme_vdev_enqueue_exp_ser_cmd(struct vdev_mlme_obj *vdev_mlme,
  444. uint8_t cmd_type);
  445. /**
  446. * mlme_vdev_ops_start_fw_send - Send WMI START/RESTART commmand to FW
  447. * @vdev: VDEV object
  448. *
  449. * API to send WMI start/restart command to FW
  450. *
  451. * Return: SUCCESS on successful sending the command
  452. * Else FAILURE
  453. */
  454. QDF_STATUS mlme_vdev_ops_start_fw_send(struct wlan_objmgr_vdev *vdev,
  455. uint8_t restart);
  456. /**
  457. * mlme_vdev_ops_multivdev_restart_fw_cmd_send - Send WMI Multivdev restart
  458. * commmand to FW
  459. * @pdev: PDEV object
  460. *
  461. * API to send WMI multivdev restart command to FW
  462. *
  463. * Return: SUCCESS on successful sending the command
  464. * Else FAILURE
  465. */
  466. QDF_STATUS mlme_vdev_ops_multivdev_restart_fw_cmd_send(
  467. struct wlan_objmgr_pdev *pdev);
  468. /**
  469. * mlme_vdev_ops_stop_fw_send - Send WMI STOP commmand to FW
  470. * @vdev: VDEV object
  471. *
  472. * API to send WMI stop command to FW
  473. *
  474. * Return: SUCCESS on successful sending the command
  475. * Else FAILURE
  476. */
  477. QDF_STATUS mlme_vdev_ops_stop_fw_send(struct wlan_objmgr_vdev *vdev);
  478. /**
  479. * mlme_vdev_ops_down_fw_send - Send WMI Down commmand to FW
  480. * @vdev: VDEV object
  481. *
  482. * API to send WMI down command to FW
  483. *
  484. * Return: SUCCESS on successful sending the command
  485. * Else FAILURE
  486. */
  487. QDF_STATUS mlme_vdev_ops_down_fw_send(struct wlan_objmgr_vdev *vdev);
  488. /*
  489. * mlme_vdev_ops_ext_hdl_multivdev_restart_resp() - Handler multivdev restart
  490. * response event
  491. * @psoc: PSOC object manager handle
  492. * @resp: Restart response event
  493. *
  494. * Return: Success on successful handling of the response event,
  495. * Else failure
  496. */
  497. QDF_STATUS mlme_vdev_ops_ext_hdl_multivdev_restart_resp(
  498. struct wlan_objmgr_psoc *psoc,
  499. struct multi_vdev_restart_resp *resp);
  500. /**
  501. * mlme_set_ops_register_cb - Sets ops registration callback
  502. * @ops_cb: Function pointer
  503. *
  504. * API to set ops registration call back
  505. *
  506. * Return: void
  507. */
  508. typedef struct mlme_ext_ops *(*mlme_get_global_ops_cb)(void);
  509. void mlme_set_ops_register_cb(mlme_get_global_ops_cb ops_cb);
  510. /**
  511. * wlan_cmn_mlme_init - Initializes MLME component
  512. *
  513. * Registers callbacks with object manager for create/destroy
  514. *
  515. * Return: SUCCESS on successful registration
  516. * FAILURE, if registration fails
  517. */
  518. QDF_STATUS wlan_cmn_mlme_init(void);
  519. /**
  520. * wlan_cmn_mlme_deinit - Uninitializes MLME component
  521. *
  522. * Unregisters callbacks with object manager for create/destroy
  523. *
  524. * Return: SUCCESS on successful registration
  525. * FAILURE, if registration fails
  526. */
  527. QDF_STATUS wlan_cmn_mlme_deinit(void);
  528. /**
  529. * mlme_vdev_ops_ext_hdl_delete_rsp - Vdev Delete response ext handler
  530. * @psoc: PSOC object
  531. * @rsp: Vdev delete response received from the firmware
  532. *
  533. * API to invoke the legacy delete response handler for legacy cleanup
  534. *
  535. * Return: SUCCESS on successful deletion
  536. * FAILURE, if deletion fails
  537. */
  538. QDF_STATUS mlme_vdev_ops_ext_hdl_delete_rsp(struct wlan_objmgr_psoc *psoc,
  539. struct vdev_delete_response *rsp);
  540. /**
  541. * mlme_cm_ext_hdl_create() - Connection manager callback to create ext
  542. * context
  543. * @vdev: VDEV object
  544. * @ext_cm_ptr: pointer to connection manager ext pointer
  545. *
  546. * Return: QDF_STATUS
  547. */
  548. QDF_STATUS mlme_cm_ext_hdl_create(struct wlan_objmgr_vdev *vdev,
  549. cm_ext_t **ext_cm_ptr);
  550. /**
  551. * mlme_cm_ext_hdl_destroy() - Connection manager callback to destroy ext
  552. * context
  553. * @vdev: VDEV object
  554. * @ext_cm_ptr: connection manager ext pointer
  555. *
  556. * Return: QDF_STATUS
  557. */
  558. QDF_STATUS mlme_cm_ext_hdl_destroy(struct wlan_objmgr_vdev *vdev,
  559. cm_ext_t *ext_cm_ptr);
  560. /**
  561. * mlme_cm_connect_start_ind() - Connection manager ext Connect start indication
  562. * @vdev: VDEV object
  563. * @req: Connection manager connect request
  564. *
  565. * Return: QDF_STATUS
  566. */
  567. QDF_STATUS mlme_cm_connect_start_ind(struct wlan_objmgr_vdev *vdev,
  568. struct wlan_cm_connect_req *req);
  569. /**
  570. * mlme_cm_bss_select_ind() - Connection manager ext Connect candidate
  571. * select indication, to do operations for the candidate
  572. * @vdev: VDEV object
  573. * @req: Vdev connect request
  574. *
  575. * Return: QDF_STATUS
  576. */
  577. QDF_STATUS mlme_cm_bss_select_ind(struct wlan_objmgr_vdev *vdev,
  578. struct wlan_cm_vdev_connect_req *req);
  579. /**
  580. * mlme_cm_bss_peer_create_req() - Connection manager ext bss peer create
  581. * request
  582. * @vdev: VDEV object
  583. * @peer_mac: Peer mac address
  584. * @mld_mac: mld mac address
  585. * @is_assoc_link: assoc happens on this link or not
  586. *
  587. * Return: QDF_STATUS
  588. */
  589. QDF_STATUS mlme_cm_bss_peer_create_req(struct wlan_objmgr_vdev *vdev,
  590. struct qdf_mac_addr *peer_mac,
  591. struct qdf_mac_addr *mld_mac,
  592. bool is_assoc_link);
  593. /**
  594. * mlme_cm_connect_req() - Connection manager ext connect request to start vdev
  595. * and peer assoc state machine
  596. * @vdev: VDEV object
  597. * @req: Vdev connect request
  598. *
  599. * Context: The req is on stack, so the API need to make a copy, if it want to
  600. * use the req after return.
  601. *
  602. * Return: QDF_STATUS
  603. */
  604. QDF_STATUS mlme_cm_connect_req(struct wlan_objmgr_vdev *vdev,
  605. struct wlan_cm_vdev_connect_req *req);
  606. /**
  607. * mlme_cm_connect_complete_ind() - Connection manager ext connect complete
  608. * indication
  609. * @vdev: VDEV object
  610. * @rsp: Connection manager connect response
  611. *
  612. * Return: QDF_STATUS
  613. */
  614. QDF_STATUS mlme_cm_connect_complete_ind(struct wlan_objmgr_vdev *vdev,
  615. struct wlan_cm_connect_resp *rsp);
  616. /**
  617. * mlme_cm_roam_start_ind() - Connection manager ext Connect start indication
  618. * @vdev: VDEV object
  619. * @req: Connection manager roam request
  620. *
  621. * Return: QDF_STATUS
  622. */
  623. QDF_STATUS mlme_cm_roam_start_ind(struct wlan_objmgr_vdev *vdev,
  624. struct wlan_cm_roam_req *req);
  625. /**
  626. * mlme_cm_rso_stop_req() - Connection manager ext RSO stop request
  627. * @vdev: VDEV object
  628. *
  629. * Return: QDF_STATUS
  630. */
  631. QDF_STATUS mlme_cm_rso_stop_req(struct wlan_objmgr_vdev *vdev);
  632. /**
  633. * mlme_cm_reassoc_req() - Connection manager ext reassoc request
  634. * @vdev: VDEV object
  635. * @req: Vdev reassoc request
  636. *
  637. * Context: The req is on stack, so the API need to make a copy, if it want to
  638. * use the req after return.
  639. *
  640. * Return: QDF_STATUS
  641. */
  642. QDF_STATUS mlme_cm_reassoc_req(struct wlan_objmgr_vdev *vdev,
  643. struct wlan_cm_vdev_reassoc_req *req);
  644. /**
  645. * mlme_cm_disconnect_start_ind() - Connection manager ext disconnect start
  646. * indication
  647. * @vdev: VDEV object
  648. * @req: Connection manager disconnect request
  649. *
  650. * Return: QDF_STATUS
  651. */
  652. QDF_STATUS mlme_cm_disconnect_start_ind(struct wlan_objmgr_vdev *vdev,
  653. struct wlan_cm_disconnect_req *req);
  654. /**
  655. * mlme_cm_disconnect_req() - Connection manager ext disconnect
  656. * req to vdev and peer sm
  657. * @vdev: VDEV object
  658. * @req: vdev disconnect request
  659. *
  660. * Return: QDF_STATUS
  661. */
  662. QDF_STATUS mlme_cm_disconnect_req(struct wlan_objmgr_vdev *vdev,
  663. struct wlan_cm_vdev_discon_req *req);
  664. /**
  665. * mlme_cm_bss_peer_delete_req() - Connection manager ext bss peer delete
  666. * request
  667. * @vdev: VDEV object
  668. *
  669. * Return: QDF_STATUS
  670. */
  671. QDF_STATUS
  672. mlme_cm_bss_peer_delete_req(struct wlan_objmgr_vdev *vdev);
  673. /**
  674. * mlme_cm_disconnect_complete_ind() - Connection manager ext disconnect
  675. * complete indication
  676. * @vdev: VDEV object
  677. * @rsp: Connection manager disconnect response
  678. *
  679. * Return: QDF_STATUS
  680. */
  681. QDF_STATUS mlme_cm_disconnect_complete_ind(struct wlan_objmgr_vdev *vdev,
  682. struct wlan_cm_discon_rsp *rsp);
  683. /**
  684. * mlme_cm_vdev_down() - Connection manager ext req to send vdev down to FW
  685. * @vdev: VDEV object
  686. *
  687. * Return: QDF_STATUS
  688. */
  689. QDF_STATUS mlme_cm_vdev_down_req(struct wlan_objmgr_vdev *vdev);
  690. /**
  691. * mlme_cm_osif_connect_complete() - Connect complete resp to osif
  692. * @vdev: vdev pointer
  693. * @rsp: Connect response
  694. *
  695. * Return: QDF_STATUS
  696. */
  697. QDF_STATUS mlme_cm_osif_connect_complete(struct wlan_objmgr_vdev *vdev,
  698. struct wlan_cm_connect_resp *rsp);
  699. /**
  700. * mlme_cm_osif_failed_candidate_ind() - Failed Candidate indication to osif
  701. * @vdev: vdev pointer
  702. * @rsp: Connect response
  703. *
  704. * Return: QDF_STATUS
  705. */
  706. QDF_STATUS
  707. mlme_cm_osif_failed_candidate_ind(struct wlan_objmgr_vdev *vdev,
  708. struct wlan_cm_connect_resp *rsp);
  709. /**
  710. * mlme_cm_osif_update_id_and_src() - Update connection id and source to osif
  711. * @vdev: vdev pointer
  712. * @source: source of request
  713. * @cm_id: connection manager id
  714. *
  715. * Return: QDF_STATUS
  716. */
  717. QDF_STATUS mlme_cm_osif_update_id_and_src(struct wlan_objmgr_vdev *vdev,
  718. enum wlan_cm_source source,
  719. wlan_cm_id cm_id);
  720. /**
  721. * mlme_cm_osif_disconnect_complete() - Disconnect complete osif response
  722. * @vdev: vdev pointer
  723. * @cm_conn_rsp: Connect response
  724. *
  725. * Return: QDF_STATUS
  726. */
  727. QDF_STATUS
  728. mlme_cm_osif_disconnect_complete(struct wlan_objmgr_vdev *vdev,
  729. struct wlan_cm_discon_rsp *rsp);
  730. /**
  731. * mlme_cm_osif_disconnect_start_ind() - osif Disconnect start indication
  732. * @vdev: vdev pointer
  733. * @cm_conn_rsp: Connect response
  734. *
  735. * Return: QDF_STATUS
  736. */
  737. QDF_STATUS mlme_cm_osif_disconnect_start_ind(struct wlan_objmgr_vdev *vdev);
  738. #ifdef CONN_MGR_ADV_FEATURE
  739. /**
  740. * mlme_cm_osif_roam_sync_ind() - osif Roam sync indication
  741. * @vdev: vdev pointer
  742. *
  743. * Return: QDF_STATUS
  744. */
  745. QDF_STATUS mlme_cm_osif_roam_sync_ind(struct wlan_objmgr_vdev *vdev);
  746. /**
  747. * mlme_cm_osif_pmksa_candidate_notify() - osif roam pmksa candidate notify
  748. * @vdev: vdev pointer
  749. * @bssid: bssid
  750. * @index: index
  751. * @preauth: preauth flag
  752. *
  753. * Return: QDF_STATUS
  754. */
  755. QDF_STATUS mlme_cm_osif_pmksa_candidate_notify(struct wlan_objmgr_vdev *vdev,
  756. struct qdf_mac_addr *bssid,
  757. int index, bool preauth);
  758. #else
  759. static inline
  760. QDF_STATUS mlme_cm_osif_roam_sync_ind(struct wlan_objmgr_vdev *vdev)
  761. {
  762. return QDF_STATUS_SUCCESS;
  763. }
  764. #endif
  765. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  766. /**
  767. * mlme_cm_osif_roam_start_ind() - osif Roam start indication
  768. * @vdev: vdev pointer
  769. *
  770. * Return: QDF_STATUS
  771. */
  772. QDF_STATUS mlme_cm_osif_roam_start_ind(struct wlan_objmgr_vdev *vdev);
  773. /**
  774. * mlme_cm_osif_roam_abort_ind() - osif Roam abort indication
  775. * @vdev: vdev pointer
  776. *
  777. * Return: QDF_STATUS
  778. */
  779. QDF_STATUS mlme_cm_osif_roam_abort_ind(struct wlan_objmgr_vdev *vdev);
  780. /**
  781. * mlme_cm_osif_roam_complete() - osif Roam sync complete callback
  782. * @vdev: vdev pointer
  783. *
  784. * Return: QDF_STATUS
  785. */
  786. QDF_STATUS mlme_cm_osif_roam_complete(struct wlan_objmgr_vdev *vdev);
  787. #endif
  788. #ifdef WLAN_FEATURE_PREAUTH_ENABLE
  789. /**
  790. * mlme_cm_osif_ft_preauth_complete() - osif roam ft preauth complete callback
  791. * @vdev: vdev pointer
  792. * @rsp: preauth response pointer
  793. *
  794. * Return: QDF_STATUS
  795. */
  796. QDF_STATUS
  797. mlme_cm_osif_ft_preauth_complete(struct wlan_objmgr_vdev *vdev,
  798. struct wlan_preauth_rsp *rsp);
  799. #ifdef FEATURE_WLAN_ESE
  800. /**
  801. * mlme_cm_osif_cckm_preauth_complete() - osif cckm preauth complete callback
  802. * @vdev: vdev pointer
  803. * @rsp: preauth response pointer
  804. *
  805. * Return: QDF_STATUS
  806. */
  807. QDF_STATUS
  808. mlme_cm_osif_cckm_preauth_complete(struct wlan_objmgr_vdev *vdev,
  809. struct wlan_preauth_rsp *rsp);
  810. #else
  811. static inline QDF_STATUS
  812. mlme_cm_osif_cckm_preauth_complete(struct wlan_objmgr_vdev *vdev,
  813. struct wlan_preauth_rsp *rsp)
  814. {
  815. return QDF_STATUS_SUCCESS;
  816. }
  817. #endif /* FEATURE_WLAN_ESE */
  818. #endif /* WLAN_FEATURE_PREAUTH_ENABLE */
  819. /**
  820. * typedef osif_cm_get_global_ops_cb() - Callback to get connection manager
  821. * global ops
  822. */
  823. typedef struct mlme_cm_ops *(*osif_cm_get_global_ops_cb)(void);
  824. /**
  825. * typedef osif_twt_get_global_ops_cb() - Callback to get twt global ops
  826. */
  827. typedef struct mlme_twt_ops *(*osif_twt_get_global_ops_cb)(void);
  828. /**
  829. * mlme_set_osif_cm_cb() - Sets ops registration callback
  830. * @cm_osif_ops: Function pointer
  831. *
  832. * API to set ops registration call back
  833. *
  834. * Return: void
  835. */
  836. void mlme_set_osif_cm_cb(osif_cm_get_global_ops_cb cm_osif_ops);
  837. /**
  838. * typedef osif_vdev_mgr_get_global_ops_cb() - Callback to get vdev manager
  839. * global ops
  840. */
  841. typedef struct mlme_vdev_mgr_ops *(*osif_vdev_mgr_get_global_ops_cb)(void);
  842. /**
  843. * mlme_set_osif_vdev_mgr_cb() - Sets ops registration callback
  844. * @mlme_vdev_mgr_osif_ops: Function pointer
  845. *
  846. * API to set ops registration call back
  847. *
  848. * Return: void
  849. */
  850. void mlme_set_osif_vdev_mgr_cb(
  851. osif_vdev_mgr_get_global_ops_cb mlme_vdev_mgr_osif_ops);
  852. /**
  853. * mlme_set_osif_twt_cb() - Sets twt ops registration callback
  854. * @twt_osif_ops: Function pointer
  855. *
  856. * API to set twt ops registration call back
  857. *
  858. * Return: void
  859. */
  860. void mlme_set_osif_twt_cb(osif_twt_get_global_ops_cb twt_osif_ops);
  861. /**
  862. * mlme_max_chan_switch_is_set() - Get if max chan switch IE is enabled
  863. * @vdev: Object manager vdev pointer
  864. *
  865. * Return: True if max chan switch is enabled else false
  866. */
  867. bool mlme_max_chan_switch_is_set(struct wlan_objmgr_psoc *psoc);
  868. #ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
  869. /**
  870. * mlme_vdev_ops_send_set_mac_address() - Send set MAC address request to FW
  871. * @mac_addr: VDEV MAC address
  872. * @mld_addr: VDEV MLD address
  873. * @vdev: vdev pointer
  874. *
  875. * API to send set MAC address request command to FW
  876. *
  877. * Return: QDF_STATUS
  878. */
  879. QDF_STATUS mlme_vdev_ops_send_set_mac_address(struct qdf_mac_addr mac_addr,
  880. struct qdf_mac_addr mld_addr,
  881. struct wlan_objmgr_vdev *vdev);
  882. /**
  883. * mlme_vdev_mgr_notify_set_mac_addr_response() - Notify set MAC address
  884. * response
  885. * @vdev_id: VDEV ID
  886. * @resp_status: FW response for the set MAC address operation
  887. *
  888. * API to notify set MAC address to osif
  889. *
  890. * Return: None
  891. */
  892. void mlme_vdev_mgr_notify_set_mac_addr_response(uint8_t vdev_id,
  893. uint8_t resp_status);
  894. #endif
  895. #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
  896. /**
  897. * mlme_twt_osif_enable_complete_ind() - enable complete resp to osif
  898. * @psoc: psoc pointer
  899. * @event: enable complete response
  900. *
  901. * Return: QDF_STATUS
  902. */
  903. QDF_STATUS
  904. mlme_twt_osif_enable_complete_ind(struct wlan_objmgr_psoc *psoc,
  905. struct twt_enable_complete_event_param *event,
  906. void *context);
  907. /**
  908. * mlme_twt_osif_disable_complete_ind() - disable complete resp to osif
  909. * @psoc: psoc pointer
  910. * @event: disable complete response
  911. *
  912. * Return: QDF_STATUS
  913. */
  914. QDF_STATUS
  915. mlme_twt_osif_disable_complete_ind(struct wlan_objmgr_psoc *psoc,
  916. struct twt_disable_complete_event_param *event,
  917. void *context);
  918. /**
  919. * mlme_twt_osif_ack_complete_ind() - ack complete resp to osif
  920. * @psoc: psoc pointer
  921. * @event: ack complete response
  922. *
  923. * Return: QDF_STATUS
  924. */
  925. QDF_STATUS
  926. mlme_twt_osif_ack_complete_ind(struct wlan_objmgr_psoc *psoc,
  927. struct twt_ack_complete_event_param *event,
  928. void *context);
  929. /**
  930. * mlme_twt_osif_setup_complete_ind() - setup complete resp to osif
  931. * @psoc: psoc pointer
  932. * @event: setup complete response
  933. * @renego_fail: flag to indicate if renegotiation failure case
  934. *
  935. * Return: QDF_STATUS
  936. */
  937. QDF_STATUS
  938. mlme_twt_osif_setup_complete_ind(struct wlan_objmgr_psoc *psoc,
  939. struct twt_add_dialog_complete_event *event,
  940. bool renego_fail);
  941. /**
  942. * mlme_twt_osif_teardown_complete_ind() - teardown complete resp to osif
  943. * @psoc: psoc pointer
  944. * @event: teardown complete response
  945. *
  946. * Return: QDF_STATUS
  947. */
  948. QDF_STATUS
  949. mlme_twt_osif_teardown_complete_ind(struct wlan_objmgr_psoc *psoc,
  950. struct twt_del_dialog_complete_event_param *event);
  951. /**
  952. * mlme_twt_osif_pause_complete_ind() - pause complete resp to osif
  953. * @psoc: psoc pointer
  954. * @event: pause complete response
  955. *
  956. * Return: QDF_STATUS
  957. */
  958. QDF_STATUS
  959. mlme_twt_osif_pause_complete_ind(struct wlan_objmgr_psoc *psoc,
  960. struct twt_pause_dialog_complete_event_param *event);
  961. /**
  962. * mlme_twt_osif_resume_complete_ind() - resume complete resp to osif
  963. * @psoc: psoc pointer
  964. * @event: resume complete response
  965. *
  966. * Return: QDF_STATUS
  967. */
  968. QDF_STATUS
  969. mlme_twt_osif_resume_complete_ind(struct wlan_objmgr_psoc *psoc,
  970. struct twt_resume_dialog_complete_event_param *event);
  971. /**
  972. * mlme_twt_osif_nudge_complete_ind() - nudge complete resp to osif
  973. * @psoc: psoc pointer
  974. * @event: nudge complete response
  975. *
  976. * Return: QDF_STATUS
  977. */
  978. QDF_STATUS
  979. mlme_twt_osif_nudge_complete_ind(struct wlan_objmgr_psoc *psoc,
  980. struct twt_nudge_dialog_complete_event_param *event);
  981. /**
  982. * mlme_twt_osif_notify_complete_ind() - notify complete resp to osif
  983. * @psoc: psoc pointer
  984. * @event: notify complete response
  985. *
  986. * Return: QDF_STATUS
  987. */
  988. QDF_STATUS
  989. mlme_twt_osif_notify_complete_ind(struct wlan_objmgr_psoc *psoc,
  990. struct twt_notify_event_param *event);
  991. /**
  992. * mlme_twt_vdev_create_notification() - vdev create notification to osif
  993. * @vdev: vdev pointer
  994. *
  995. * Return: QDF_STATUS
  996. */
  997. QDF_STATUS
  998. mlme_twt_vdev_create_notification(struct wlan_objmgr_vdev *vdev);
  999. /**
  1000. * mlme_twt_vdev_destroy_notification() - vdev destroy notification to osif
  1001. * @vdev: vdev pointer
  1002. *
  1003. * Return: QDF_STATUS
  1004. */
  1005. QDF_STATUS
  1006. mlme_twt_vdev_destroy_notification(struct wlan_objmgr_vdev *vdev);
  1007. #else
  1008. static inline QDF_STATUS
  1009. mlme_twt_osif_enable_complete_ind(struct wlan_objmgr_psoc *psoc,
  1010. struct twt_enable_complete_event_param *event,
  1011. void *context)
  1012. {
  1013. return QDF_STATUS_SUCCESS;
  1014. }
  1015. static inline QDF_STATUS
  1016. mlme_twt_osif_disable_complete_ind(struct wlan_objmgr_psoc *psoc,
  1017. struct twt_disable_complete_event_param *event,
  1018. void *context)
  1019. {
  1020. return QDF_STATUS_SUCCESS;
  1021. }
  1022. static inline QDF_STATUS
  1023. mlme_twt_osif_ack_complete_ind(struct wlan_objmgr_psoc *psoc,
  1024. struct twt_ack_complete_event_param *event,
  1025. void *context)
  1026. {
  1027. return QDF_STATUS_SUCCESS;
  1028. }
  1029. static inline QDF_STATUS
  1030. mlme_twt_osif_setup_complete_ind(struct wlan_objmgr_psoc *psoc,
  1031. struct twt_add_dialog_complete_event *event,
  1032. bool renego_fail)
  1033. {
  1034. return QDF_STATUS_SUCCESS;
  1035. }
  1036. static inline QDF_STATUS
  1037. mlme_twt_osif_teardown_complete_ind(struct wlan_objmgr_psoc *psoc,
  1038. struct twt_del_dialog_complete_event_param *event)
  1039. {
  1040. return QDF_STATUS_SUCCESS;
  1041. }
  1042. static inline QDF_STATUS
  1043. mlme_twt_osif_pause_complete_ind(struct wlan_objmgr_psoc *psoc,
  1044. struct twt_pause_dialog_complete_event_param *event)
  1045. {
  1046. return QDF_STATUS_SUCCESS;
  1047. }
  1048. static inline QDF_STATUS
  1049. mlme_twt_osif_resume_complete_ind(struct wlan_objmgr_psoc *psoc,
  1050. struct twt_resume_dialog_complete_event_param *event)
  1051. {
  1052. return QDF_STATUS_SUCCESS;
  1053. }
  1054. static inline QDF_STATUS
  1055. mlme_twt_osif_nudge_complete_ind(struct wlan_objmgr_psoc *psoc,
  1056. struct twt_nudge_dialog_complete_event_param *event)
  1057. {
  1058. return QDF_STATUS_SUCCESS;
  1059. }
  1060. static inline QDF_STATUS
  1061. mlme_twt_osif_notify_complete_ind(struct wlan_objmgr_psoc *psoc,
  1062. struct twt_notify_event_param *event)
  1063. {
  1064. return QDF_STATUS_SUCCESS;
  1065. }
  1066. static inline QDF_STATUS
  1067. mlme_twt_vdev_create_notification(struct wlan_objmgr_vdev *vdev)
  1068. {
  1069. return QDF_STATUS_SUCCESS;
  1070. }
  1071. static inline QDF_STATUS
  1072. mlme_twt_vdev_destroy_notification(struct wlan_objmgr_vdev *vdev)
  1073. {
  1074. return QDF_STATUS_SUCCESS;
  1075. }
  1076. #endif /* WLAN_SUPPORT_TWT && WLAN_TWT_CONV_SUPPORTED */
  1077. #endif