wlan_mlme_cmn.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. /*
  2. * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. /**
  17. * DOC: Define Common MLME structure and APIs
  18. */
  19. #ifndef _WLAN_MLME_CMN_H_
  20. #define _WLAN_MLME_CMN_H_
  21. #include <include/wlan_psoc_mlme.h>
  22. #include <include/wlan_pdev_mlme.h>
  23. #include <include/wlan_vdev_mlme.h>
  24. #ifdef FEATURE_CM_ENABLE
  25. #include "wlan_cm_public_struct.h"
  26. #endif
  27. #ifdef FEATURE_CM_ENABLE
  28. /**
  29. * mlme_cm_ops: connection manager osif callbacks
  30. * @mlme_cm_connect_complete_cb: Connect done callback
  31. * @vdev: vdev pointer
  32. * @rsp: connect response
  33. *
  34. * @mlme_cm_failed_candidate_cb: Callback to indicate failed candidate
  35. * @vdev: vdev pointer
  36. * @rsp: connect response
  37. *
  38. * @mlme_cm_update_id_and_src_cb: Callback to update connect id and
  39. * source of the connect request
  40. * @vdev: vdev pointer
  41. * @Source: Source of the connect req
  42. * @cm_id: connection manager id
  43. *
  44. * @mlme_cm_disconnect_complete_cb: Disconnect done callback
  45. * @vdev: vdev pointer
  46. * @rsp: Disconnect response
  47. *
  48. * @mlme_cm_disconnect_start_cb: Disconnect start callback
  49. * @vdev: vdev pointer
  50. */
  51. struct mlme_cm_ops {
  52. QDF_STATUS (*mlme_cm_connect_complete_cb)(
  53. struct wlan_objmgr_vdev *vdev,
  54. struct wlan_cm_connect_resp *rsp);
  55. QDF_STATUS (*mlme_cm_failed_candidate_cb)(
  56. struct wlan_objmgr_vdev *vdev,
  57. struct wlan_cm_connect_resp *rsp);
  58. QDF_STATUS (*mlme_cm_update_id_and_src_cb)(
  59. struct wlan_objmgr_vdev *vdev,
  60. enum wlan_cm_source source,
  61. wlan_cm_id cm_id);
  62. QDF_STATUS (*mlme_cm_disconnect_complete_cb)(
  63. struct wlan_objmgr_vdev *vdev,
  64. struct wlan_cm_discon_rsp *rsp);
  65. QDF_STATUS (*mlme_cm_disconnect_start_cb)(
  66. struct wlan_objmgr_vdev *vdev);
  67. };
  68. #endif
  69. /**
  70. * struct vdev_mlme_ext_ops - VDEV MLME legacy callbacks structure
  71. * @mlme_psoc_ext_hdl_create: callback to invoke creation of
  72. * legacy psoc object
  73. * @mlme_psoc_ext_hdl_destroy: callback to invoke destroy of legacy
  74. * psoc object
  75. * @mlme_pdev_ext_hdl_create: callback to invoke creation of
  76. * legacy pdev object
  77. * @mlme_pdev_ext_hdl_destroy: callback to invoke destroy of legacy
  78. * pdev object
  79. * @mlme_vdev_ext_hdl_create: callback to invoke creation of
  80. * legacy vdev object
  81. * @mlme_vdev_ext_hdl_post_create: callback to invoke post creation
  82. * actions of legacy vdev object
  83. * @mlme_vdev_ext_hdl_destroy: callback to invoke destroy of legacy
  84. * vdev object
  85. * @mlme_vdev_start_fw_send: callback to invoke vdev start
  86. * command
  87. * @mlme_vdev_stop_fw_send: callback to invoke vdev stop command
  88. * @mlme_vdev_down_fw_send: callback to invoke vdev down command
  89. * @mlme_multivdev_restart_fw_send: callback to invoke multivdev restart
  90. * command
  91. * @mlme_vdev_enqueue_exp_cmd: callback to enqueue exception
  92. * command
  93. * required by serialization
  94. * @mlme_multi_vdev_restart_resp: callback to process multivdev
  95. * restart response
  96. * @mlme_cm_ext_hdl_create_cb: callback to create ext cm context
  97. * @mlme_cm_ext_hdl_destroy_cb: callback to destroy ext cm context
  98. * @mlme_cm_ext_connect_start_ind_cb: callback to indicate connect start
  99. * @mlme_cm_ext_bss_select_ind_cb: callback to indicate candidate
  100. * select for connect
  101. * @mlme_cm_ext_bss_peer_create_req_cb: callback to bss peer create request
  102. * @mlme_cm_ext_connect_req_cb: callback for connect request to
  103. * VDEV/PEER SM
  104. * @mlme_cm_ext_connect_complete_ind_cb: callback to indicate connect
  105. * complete
  106. * @mlme_cm_ext_disconnect_start_ind_cb : callback to indicate disconnect
  107. * start
  108. * @mlme_cm_ext_disconnect_req_cb: callback to disconnect req to
  109. * VDEV/PEER SM
  110. * @mlme_cm_ext_bss_peer_delete_req_cb: callback to bss peer delete request
  111. * @mlme_cm_ext_disconnect_complete_ind_cb: callback to indicate disconnect
  112. * complete
  113. * @mlme_cm_ext_vdev_down_req_cb: callback to send vdev down to FW
  114. */
  115. struct mlme_ext_ops {
  116. QDF_STATUS (*mlme_psoc_ext_hdl_create)(
  117. struct psoc_mlme_obj *psoc_mlme);
  118. QDF_STATUS (*mlme_psoc_ext_hdl_destroy)(
  119. struct psoc_mlme_obj *pdev_mlme);
  120. QDF_STATUS (*mlme_pdev_ext_hdl_create)(
  121. struct pdev_mlme_obj *pdev_mlme);
  122. QDF_STATUS (*mlme_pdev_ext_hdl_destroy)(
  123. struct pdev_mlme_obj *pdev_mlme);
  124. QDF_STATUS (*mlme_vdev_ext_hdl_create)(
  125. struct vdev_mlme_obj *vdev_mlme);
  126. QDF_STATUS (*mlme_vdev_ext_hdl_post_create)(
  127. struct vdev_mlme_obj *vdev_mlme);
  128. QDF_STATUS (*mlme_vdev_ext_hdl_destroy)(
  129. struct vdev_mlme_obj *vdev_mlme);
  130. QDF_STATUS (*mlme_vdev_start_fw_send)(
  131. struct wlan_objmgr_vdev *vdev, uint8_t restart);
  132. QDF_STATUS (*mlme_vdev_stop_fw_send)(struct wlan_objmgr_vdev *vdev);
  133. QDF_STATUS (*mlme_vdev_down_fw_send)(struct wlan_objmgr_vdev *vdev);
  134. QDF_STATUS (*mlme_multivdev_restart_fw_send)(
  135. struct wlan_objmgr_pdev *pdev);
  136. QDF_STATUS (*mlme_vdev_enqueue_exp_cmd)(
  137. struct vdev_mlme_obj *vdev_mlme,
  138. uint8_t cmd_type);
  139. QDF_STATUS (*mlme_vdev_ext_delete_rsp)(
  140. struct wlan_objmgr_psoc *psoc,
  141. struct vdev_delete_response *rsp);
  142. QDF_STATUS (*mlme_multi_vdev_restart_resp)(
  143. struct wlan_objmgr_psoc *psoc,
  144. struct multi_vdev_restart_resp *resp);
  145. #ifdef FEATURE_CM_ENABLE
  146. QDF_STATUS (*mlme_cm_ext_hdl_create_cb)(struct cnx_mgr *cm_ctx);
  147. QDF_STATUS (*mlme_cm_ext_hdl_destroy_cb)(struct cnx_mgr *cm_ctx);
  148. QDF_STATUS (*mlme_cm_ext_connect_start_ind_cb)(
  149. struct wlan_objmgr_vdev *vdev,
  150. struct wlan_cm_connect_req *req);
  151. QDF_STATUS (*mlme_cm_ext_bss_select_ind_cb)(
  152. struct wlan_objmgr_vdev *vdev,
  153. struct wlan_cm_vdev_connect_req *req);
  154. QDF_STATUS (*mlme_cm_ext_bss_peer_create_req_cb)(
  155. struct wlan_objmgr_vdev *vdev,
  156. struct qdf_mac_addr *peer_mac);
  157. QDF_STATUS (*mlme_cm_ext_connect_req_cb)(struct wlan_objmgr_vdev *vdev,
  158. struct wlan_cm_vdev_connect_req *req);
  159. QDF_STATUS (*mlme_cm_ext_connect_complete_ind_cb)(
  160. struct wlan_objmgr_vdev *vdev,
  161. struct wlan_cm_connect_resp *rsp);
  162. QDF_STATUS (*mlme_cm_ext_disconnect_start_ind_cb)(
  163. struct wlan_objmgr_vdev *vdev,
  164. struct wlan_cm_disconnect_req *req);
  165. QDF_STATUS (*mlme_cm_ext_disconnect_req_cb)
  166. (struct wlan_objmgr_vdev *vdev,
  167. struct wlan_cm_vdev_discon_req *req);
  168. QDF_STATUS (*mlme_cm_ext_bss_peer_delete_req_cb)(
  169. struct wlan_objmgr_vdev *vdev);
  170. QDF_STATUS (*mlme_cm_ext_disconnect_complete_ind_cb)(
  171. struct wlan_objmgr_vdev *vdev,
  172. struct wlan_cm_discon_rsp *rsp);
  173. QDF_STATUS (*mlme_cm_ext_vdev_down_req_cb)(
  174. struct wlan_objmgr_vdev *vdev);
  175. #endif
  176. };
  177. /**
  178. * mlme_psoc_ops_ext_hdl_create() - Alloc PSOC mlme ext handle
  179. * @psoc_mlme: PSOC MLME comp object
  180. *
  181. * API to allocate PSOC MLME ext handle
  182. *
  183. * Return: SUCCESS on successful allocation
  184. * Else FAILURE
  185. */
  186. QDF_STATUS mlme_psoc_ops_ext_hdl_create(struct psoc_mlme_obj *psoc_mlme);
  187. /**
  188. * mlme_psoc_ops_ext_hdl_destroy() - Destroy PSOC mlme ext handle
  189. * @psoc_mlme: PSOC MLME comp object
  190. *
  191. * API to free psoc MLME ext handle
  192. *
  193. * Return: SUCCESS on successful free
  194. * Else FAILURE
  195. */
  196. QDF_STATUS mlme_psoc_ops_ext_hdl_destroy(struct psoc_mlme_obj *psoc_mlme);
  197. /**
  198. * mlme_pdev_ops_ext_hdl_create - Alloc PDEV mlme ext handle
  199. * @pdev_mlme_obj: PDEV MLME comp object
  200. *
  201. * API to allocate PDEV MLME ext handle
  202. *
  203. * Return: SUCCESS on successful allocation
  204. * Else FAILURE
  205. */
  206. QDF_STATUS mlme_pdev_ops_ext_hdl_create(struct pdev_mlme_obj *pdev_mlme);
  207. /**
  208. * mlme_pdev_ops_ext_hdl_destroy - Destroy PDEV mlme ext handle
  209. * @pdev_mlme_obj: PDEV MLME comp object
  210. *
  211. * API to free pdev MLME ext handle
  212. *
  213. * Return: SUCCESS on successful free
  214. * Else FAILURE
  215. */
  216. QDF_STATUS mlme_pdev_ops_ext_hdl_destroy(struct pdev_mlme_obj *pdev_mlme);
  217. /**
  218. * mlme_vdev_ops_ext_hdl_create - Alloc VDEV mlme ext handle
  219. * @vdev_mlme_obj: VDEV MLME comp object
  220. *
  221. * API to allocate VDEV MLME ext handle
  222. *
  223. * Return: SUCCESS on successful allocation
  224. * Else FAILURE
  225. */
  226. QDF_STATUS mlme_vdev_ops_ext_hdl_create(struct vdev_mlme_obj *vdev_mlme);
  227. /**
  228. * mlme_vdev_ops_ext_hdl_post_create - Perform post VDEV mlme ext handle alloc
  229. * operations
  230. * @vdev_mlme_obj: VDEV MLME comp object
  231. *
  232. * API to perform post vdev MLME ext handle allocation operations
  233. *
  234. * Return: SUCCESS on initialization successful
  235. * Else FAILURE
  236. */
  237. QDF_STATUS mlme_vdev_ops_ext_hdl_post_create(struct vdev_mlme_obj *vdev_mlme);
  238. /**
  239. * mlme_vdev_ops_ext_hdl_destroy - Destroy VDEV mlme ext handle
  240. * @vdev_mlme_obj: VDEV MLME comp object
  241. *
  242. * API to free vdev MLME ext handle
  243. *
  244. * Return: SUCCESS on successful free
  245. * Else FAILURE
  246. */
  247. QDF_STATUS mlme_vdev_ops_ext_hdl_destroy(struct vdev_mlme_obj *vdev_mlme);
  248. /**
  249. * mlme_vdev_enqueue_exp_ser_cmd - Enqueue exception serialization cmd
  250. * @vdev_mlme_obj: VDEV MLME comp object
  251. * @cmd_type: Serialization command type
  252. *
  253. * API to enqueue the exception serialization command, used by
  254. * mlme-serialization wrapper layer
  255. *
  256. * Return: SUCCESS on successful enqueuing the command
  257. * Else FAILURE
  258. */
  259. QDF_STATUS mlme_vdev_enqueue_exp_ser_cmd(struct vdev_mlme_obj *vdev_mlme,
  260. uint8_t cmd_type);
  261. /**
  262. * mlme_vdev_ops_start_fw_send - Send WMI START/RESTART commmand to FW
  263. * @vdev: VDEV object
  264. *
  265. * API to send WMI start/restart command to FW
  266. *
  267. * Return: SUCCESS on successful sending the command
  268. * Else FAILURE
  269. */
  270. QDF_STATUS mlme_vdev_ops_start_fw_send(struct wlan_objmgr_vdev *vdev,
  271. uint8_t restart);
  272. /**
  273. * mlme_vdev_ops_multivdev_restart_fw_cmd_send - Send WMI Multivdev restart
  274. * commmand to FW
  275. * @pdev: PDEV object
  276. *
  277. * API to send WMI multivdev restart command to FW
  278. *
  279. * Return: SUCCESS on successful sending the command
  280. * Else FAILURE
  281. */
  282. QDF_STATUS mlme_vdev_ops_multivdev_restart_fw_cmd_send(
  283. struct wlan_objmgr_pdev *pdev);
  284. /**
  285. * mlme_vdev_ops_stop_fw_send - Send WMI STOP commmand to FW
  286. * @vdev: VDEV object
  287. *
  288. * API to send WMI stop command to FW
  289. *
  290. * Return: SUCCESS on successful sending the command
  291. * Else FAILURE
  292. */
  293. QDF_STATUS mlme_vdev_ops_stop_fw_send(struct wlan_objmgr_vdev *vdev);
  294. /**
  295. * mlme_vdev_ops_down_fw_send - Send WMI Down commmand to FW
  296. * @vdev: VDEV object
  297. *
  298. * API to send WMI down command to FW
  299. *
  300. * Return: SUCCESS on successful sending the command
  301. * Else FAILURE
  302. */
  303. QDF_STATUS mlme_vdev_ops_down_fw_send(struct wlan_objmgr_vdev *vdev);
  304. /*
  305. * mlme_vdev_ops_ext_hdl_multivdev_restart_resp() - Handler multivdev restart
  306. * response event
  307. * @psoc: PSOC object manager handle
  308. * @resp: Restart response event
  309. *
  310. * Return: Success on successful handling of the response event,
  311. * Else failure
  312. */
  313. QDF_STATUS mlme_vdev_ops_ext_hdl_multivdev_restart_resp(
  314. struct wlan_objmgr_psoc *psoc,
  315. struct multi_vdev_restart_resp *resp);
  316. /**
  317. * mlme_set_ops_register_cb - Sets ops registration callback
  318. * @ops_cb: Function pointer
  319. *
  320. * API to set ops registration call back
  321. *
  322. * Return: void
  323. */
  324. typedef struct mlme_ext_ops *(*mlme_get_global_ops_cb)(void);
  325. void mlme_set_ops_register_cb(mlme_get_global_ops_cb ops_cb);
  326. /**
  327. * wlan_cmn_mlme_init - Initializes MLME component
  328. *
  329. * Registers callbacks with object manager for create/destroy
  330. *
  331. * Return: SUCCESS on successful registration
  332. * FAILURE, if registration fails
  333. */
  334. QDF_STATUS wlan_cmn_mlme_init(void);
  335. /**
  336. * wlan_cmn_mlme_deinit - Uninitializes MLME component
  337. *
  338. * Unregisters callbacks with object manager for create/destroy
  339. *
  340. * Return: SUCCESS on successful registration
  341. * FAILURE, if registration fails
  342. */
  343. QDF_STATUS wlan_cmn_mlme_deinit(void);
  344. /**
  345. * mlme_vdev_ops_ext_hdl_delete_rsp - Vdev Delete response ext handler
  346. * @psoc: PSOC object
  347. * @rsp: Vdev delete response received from the firmware
  348. *
  349. * API to invoke the legacy delete response handler for legacy cleanup
  350. *
  351. * Return: SUCCESS on successful deletion
  352. * FAILURE, if deletion fails
  353. */
  354. QDF_STATUS mlme_vdev_ops_ext_hdl_delete_rsp(struct wlan_objmgr_psoc *psoc,
  355. struct vdev_delete_response *rsp);
  356. #ifdef FEATURE_CM_ENABLE
  357. /**
  358. * mlme_cm_ext_hdl_create() - Connection manager callback to create ext
  359. * context
  360. * @cm_ctx: common cm context object
  361. *
  362. * Return: QDF_STATUS
  363. */
  364. QDF_STATUS mlme_cm_ext_hdl_create(struct cnx_mgr *cm_ctx);
  365. /**
  366. * mlme_cm_ext_hdl_destroy() - Connection manager callback to destroy ext
  367. * context
  368. * @cm_ctx: common cm context object
  369. *
  370. * Return: QDF_STATUS
  371. */
  372. QDF_STATUS mlme_cm_ext_hdl_destroy(struct cnx_mgr *cm_ctx);
  373. /**
  374. * mlme_cm_connect_start_ind() - Connection manager ext Connect start indication
  375. * @vdev: VDEV object
  376. * @req: Connection manager connect request
  377. *
  378. * Return: QDF_STATUS
  379. */
  380. QDF_STATUS mlme_cm_connect_start_ind(struct wlan_objmgr_vdev *vdev,
  381. struct wlan_cm_connect_req *req);
  382. /**
  383. * mlme_cm_bss_select_ind() - Connection manager ext Connect candidate
  384. * select indication, to do operations for the candidate
  385. * @vdev: VDEV object
  386. * @req: Vdev connect request
  387. *
  388. * Return: QDF_STATUS
  389. */
  390. QDF_STATUS mlme_cm_bss_select_ind(struct wlan_objmgr_vdev *vdev,
  391. struct wlan_cm_vdev_connect_req *req);
  392. /**
  393. * mlme_cm_bss_peer_create_req() - Connection manager ext bss peer create
  394. * request
  395. * @vdev: VDEV object
  396. * @peer_mac: Peer mac address
  397. *
  398. * Return: QDF_STATUS
  399. */
  400. QDF_STATUS mlme_cm_bss_peer_create_req(struct wlan_objmgr_vdev *vdev,
  401. struct qdf_mac_addr *peer_mac);
  402. /**
  403. * mlme_cm_connect_req() - Connection manager ext connect request to start vdev
  404. * and peer assoc state machine
  405. * @vdev: VDEV object
  406. * @req: Vdev connect request
  407. *
  408. * Context: The req is on stack, so the API need to make a copy, if it want to
  409. * use the req after return.
  410. *
  411. * Return: QDF_STATUS
  412. */
  413. QDF_STATUS mlme_cm_connect_req(struct wlan_objmgr_vdev *vdev,
  414. struct wlan_cm_vdev_connect_req *req);
  415. /**
  416. * mlme_cm_connect_complete_ind() - Connection manager ext connect complete
  417. * indication
  418. * @vdev: VDEV object
  419. * @rsp: Connection manager connect response
  420. *
  421. * Return: QDF_STATUS
  422. */
  423. QDF_STATUS mlme_cm_connect_complete_ind(struct wlan_objmgr_vdev *vdev,
  424. struct wlan_cm_connect_resp *rsp);
  425. /**
  426. * mlme_cm_disconnect_start_ind() - Connection manager ext disconnect start
  427. * indication
  428. * @vdev: VDEV object
  429. * @req: Connection manager disconnect request
  430. *
  431. * Return: QDF_STATUS
  432. */
  433. QDF_STATUS mlme_cm_disconnect_start_ind(struct wlan_objmgr_vdev *vdev,
  434. struct wlan_cm_disconnect_req *req);
  435. /**
  436. * mlme_cm_disconnect_req() - Connection manager ext disconnect
  437. * req to vdev and peer sm
  438. * @vdev: VDEV object
  439. * @req: vdev disconnect request
  440. *
  441. * Return: QDF_STATUS
  442. */
  443. QDF_STATUS mlme_cm_disconnect_req(struct wlan_objmgr_vdev *vdev,
  444. struct wlan_cm_vdev_discon_req *req);
  445. /**
  446. * mlme_cm_bss_peer_delete_req() - Connection manager ext bss peer delete
  447. * request
  448. * @vdev: VDEV object
  449. *
  450. * Return: QDF_STATUS
  451. */
  452. QDF_STATUS
  453. mlme_cm_bss_peer_delete_req(struct wlan_objmgr_vdev *vdev);
  454. /**
  455. * mlme_cm_disconnect_complete_ind() - Connection manager ext disconnect
  456. * complete indication
  457. * @vdev: VDEV object
  458. * @rsp: Connection manager disconnect response
  459. *
  460. * Return: QDF_STATUS
  461. */
  462. QDF_STATUS mlme_cm_disconnect_complete_ind(struct wlan_objmgr_vdev *vdev,
  463. struct wlan_cm_discon_rsp *rsp);
  464. /**
  465. * mlme_cm_vdev_down() - Connection manager ext req to send vdev down to FW
  466. * @vdev: VDEV object
  467. *
  468. * Return: QDF_STATUS
  469. */
  470. QDF_STATUS mlme_cm_vdev_down_req(struct wlan_objmgr_vdev *vdev);
  471. /**
  472. * mlme_cm_osif_connect_complete() - Connect complete resp to osif
  473. * @vdev: vdev pointer
  474. * @rsp: Connect response
  475. *
  476. * Return: QDF_STATUS
  477. */
  478. QDF_STATUS mlme_cm_osif_connect_complete(struct wlan_objmgr_vdev *vdev,
  479. struct wlan_cm_connect_resp *rsp);
  480. /**
  481. * mlme_cm_osif_failed_candidate_ind() - Failed Candidate indication to osif
  482. * @vdev: vdev pointer
  483. * @rsp: Connect response
  484. *
  485. * Return: QDF_STATUS
  486. */
  487. QDF_STATUS
  488. mlme_cm_osif_failed_candidate_ind(struct wlan_objmgr_vdev *vdev,
  489. struct wlan_cm_connect_resp *rsp);
  490. /**
  491. * mlme_cm_osif_update_id_and_src() - Update connection id and source to osif
  492. * @vdev: vdev pointer
  493. * @source: source of request
  494. * @cm_id: connection manager id
  495. *
  496. * Return: QDF_STATUS
  497. */
  498. QDF_STATUS mlme_cm_osif_update_id_and_src(struct wlan_objmgr_vdev *vdev,
  499. enum wlan_cm_source source,
  500. wlan_cm_id cm_id);
  501. /**
  502. * mlme_cm_osif_disconnect_complete() - Disconnect complete osif response
  503. * @vdev: vdev pointer
  504. * @cm_conn_rsp: Connect response
  505. *
  506. * Return: QDF_STATUS
  507. */
  508. QDF_STATUS
  509. mlme_cm_osif_disconnect_complete(struct wlan_objmgr_vdev *vdev,
  510. struct wlan_cm_discon_rsp *rsp);
  511. /**
  512. * mlme_cm_osif_disconnect_start_ind() - osif Disconnect start indication
  513. * @vdev: vdev pointer
  514. * @cm_conn_rsp: Connect response
  515. *
  516. * Return: QDF_STATUS
  517. */
  518. QDF_STATUS mlme_cm_osif_disconnect_start_ind(struct wlan_objmgr_vdev *vdev);
  519. /**
  520. * typedef osif_cm_get_global_ops_cb() - Callback to get connection manager
  521. * global ops
  522. */
  523. typedef struct mlme_cm_ops *(*osif_cm_get_global_ops_cb)(void);
  524. /**
  525. * mlme_set_osif_cm_cb() - Sets ops registration callback
  526. * @cm_osif_ops: Function pointer
  527. *
  528. * API to set ops registration call back
  529. *
  530. * Return: void
  531. */
  532. void mlme_set_osif_cm_cb(osif_cm_get_global_ops_cb cm_osif_ops);
  533. #endif
  534. #endif