wmi_unified_roam_api.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /*
  2. * Copyright (c) 2013-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: Implement API's specific to ROAMING component.
  19. */
  20. #ifndef _WMI_UNIFIED_ROAM_API_H_
  21. #define _WMI_UNIFIED_ROAM_API_H_
  22. #include <wmi_unified_roam_param.h>
  23. #include "wlan_cm_roam_public_struct.h"
  24. #ifdef FEATURE_LFR_SUBNET_DETECTION
  25. /**
  26. * wmi_unified_set_gateway_params_cmd() - set gateway parameters
  27. * @wmi_handle: wmi handle
  28. * @req: gateway parameter update request structure
  29. *
  30. * This function reads the incoming @req and fill in the destination
  31. * WMI structure and sends down the gateway configs down to the firmware
  32. *
  33. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures;
  34. * error number otherwise
  35. */
  36. QDF_STATUS
  37. wmi_unified_set_gateway_params_cmd(wmi_unified_t wmi_handle,
  38. struct gateway_update_req_param *req);
  39. #endif
  40. #ifdef FEATURE_RSSI_MONITOR
  41. /**
  42. * wmi_unified_set_rssi_monitoring_cmd() - set rssi monitoring
  43. * @wmi_handle: wmi handle
  44. * @req: rssi monitoring request structure
  45. *
  46. * This function reads the incoming @req and fill in the destination
  47. * WMI structure and send down the rssi monitoring configs down to the firmware
  48. *
  49. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures;
  50. * error number otherwise
  51. */
  52. QDF_STATUS
  53. wmi_unified_set_rssi_monitoring_cmd(wmi_unified_t wmi_handle,
  54. struct rssi_monitor_param *req);
  55. #endif
  56. /**
  57. * wmi_unified_roam_scan_offload_rssi_thresh_cmd() - set roam scan rssi
  58. * parameters
  59. * @wmi_handle: wmi handle
  60. * @roam_req: roam rssi related parameters
  61. *
  62. * This function reads the incoming @roam_req and fill in the destination
  63. * WMI structure and send down the roam scan rssi configs down to the firmware
  64. *
  65. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  66. */
  67. QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(
  68. wmi_unified_t wmi_handle,
  69. struct wlan_roam_offload_scan_rssi_params *roam_req);
  70. /**
  71. * wmi_unified_roam_scan_offload_scan_period() - set roam offload scan period
  72. * @wmi_handle: wmi handle
  73. * @param: pointer to roam scan period params to be sent to fw
  74. *
  75. * Send WMI_ROAM_SCAN_PERIOD parameters to fw.
  76. *
  77. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  78. */
  79. QDF_STATUS wmi_unified_roam_scan_offload_scan_period(
  80. wmi_unified_t wmi_handle, struct wlan_roam_scan_period_params *param);
  81. /**
  82. * wmi_unified_roam_mawc_params_cmd() - configure roaming MAWC parameters
  83. * @wmi_handle: wmi handle
  84. * @params: Parameters to be configured
  85. *
  86. * Pass the MAWC(Motion Aided wireless connectivity) related roaming
  87. * parameters from the host to the target
  88. *
  89. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  90. */
  91. QDF_STATUS
  92. wmi_unified_roam_mawc_params_cmd(wmi_unified_t wmi_handle,
  93. struct wlan_roam_mawc_params *params);
  94. /**
  95. * wmi_unified_roam_scan_filter_cmd() - send roam scan allowlist,
  96. * denylist and preferred list
  97. * @wmi_handle: wmi handle
  98. * @roam_req: roam scan lists related parameters
  99. *
  100. * This function reads the incoming @roam_req and fill in the destination
  101. * WMI structure and send down the different roam scan lists down to the fw
  102. *
  103. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  104. */
  105. QDF_STATUS
  106. wmi_unified_roam_scan_filter_cmd(wmi_unified_t wmi_handle,
  107. struct roam_scan_filter_params *roam_req);
  108. #ifdef FEATURE_WLAN_ESE
  109. /**
  110. * wmi_unified_plm_stop_cmd() - plm stop request
  111. * @wmi_handle: wmi handle
  112. * @plm: plm request parameters
  113. *
  114. * This function request FW to stop PLM.
  115. *
  116. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  117. */
  118. QDF_STATUS wmi_unified_plm_stop_cmd(wmi_unified_t wmi_handle,
  119. const struct plm_req_params *plm);
  120. /**
  121. * wmi_unified_plm_start_cmd() - plm start request
  122. * @wmi_handle: wmi handle
  123. * @plm: plm request parameters
  124. *
  125. * This function request FW to start PLM.
  126. *
  127. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  128. */
  129. QDF_STATUS wmi_unified_plm_start_cmd(wmi_unified_t wmi_handle,
  130. const struct plm_req_params *plm);
  131. #endif /* FEATURE_WLAN_ESE */
  132. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  133. /* wmi_unified_set_ric_req_cmd() - set ric request element
  134. * @wmi_handle: wmi handle
  135. * @msg: message
  136. * @is_add_ts: is addts required
  137. *
  138. * This function sets ric request element for 11r roaming.
  139. *
  140. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  141. */
  142. QDF_STATUS wmi_unified_set_ric_req_cmd(wmi_unified_t wmi_handle, void *msg,
  143. uint8_t is_add_ts);
  144. /**
  145. * wmi_unified_roam_synch_complete_cmd() - roam synch complete command to fw.
  146. * @wmi_handle: wmi handle
  147. * @vdev_id: vdev id
  148. *
  149. * This function sends roam synch complete event to fw.
  150. *
  151. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  152. */
  153. QDF_STATUS wmi_unified_roam_synch_complete_cmd(wmi_unified_t wmi_handle,
  154. uint8_t vdev_id);
  155. /**
  156. * wmi_unified__roam_invoke_cmd() - send roam invoke command to fw.
  157. * @wmi_handle: wmi handle
  158. * @roaminvoke: roam invoke command
  159. *
  160. * Send roam invoke command to fw for fastreassoc.
  161. *
  162. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  163. */
  164. QDF_STATUS
  165. wmi_unified_roam_invoke_cmd(wmi_unified_t wmi_handle,
  166. struct roam_invoke_req *roaminvoke);
  167. /**
  168. * wmi_unified_set_roam_triggers() - send roam trigger bitmap
  169. * @wmi_handle: wmi handle
  170. * @triggers: Roam trigger bitmap params as defined @roam_control_trigger_reason
  171. *
  172. * This function passes the roam trigger bitmap to fw
  173. *
  174. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  175. */
  176. QDF_STATUS wmi_unified_set_roam_triggers(wmi_unified_t wmi_handle,
  177. struct wlan_roam_triggers *triggers);
  178. /**
  179. * wmi_unified_send_disconnect_roam_params() - Send disconnect roam trigger
  180. * parameters to firmware
  181. * @wmi_hdl: wmi handle
  182. * @params: pointer to wlan_roam_disconnect_params
  183. *
  184. * Return: QDF_STATUS
  185. */
  186. QDF_STATUS
  187. wmi_unified_send_disconnect_roam_params(wmi_unified_t wmi_handle,
  188. struct wlan_roam_disconnect_params *req);
  189. /**
  190. * wmi_unified_send_idle_roam_params() - Send idle roam trigger params to fw
  191. * @wmi_hdl: wmi handle
  192. * @params: pointer to wlan_roam_idle_params
  193. *
  194. * Return: QDF_STATUS
  195. */
  196. QDF_STATUS
  197. wmi_unified_send_idle_roam_params(wmi_unified_t wmi_handle,
  198. struct wlan_roam_idle_params *req);
  199. /**
  200. * wmi_unified_send_roam_preauth_status() - Send roam preauthentication status
  201. * to target.
  202. * @wmi_handle: wmi handle
  203. * @param: Roam auth status params
  204. *
  205. * This function passes preauth status of WPA3 SAE auth to firmware. It is
  206. * called when external_auth_status event is received from userspace.
  207. *
  208. * Return: QDF_STATUS
  209. */
  210. QDF_STATUS
  211. wmi_unified_send_roam_preauth_status(wmi_unified_t wmi_handle,
  212. struct wmi_roam_auth_status_params *param);
  213. /**
  214. * wmi_unified_vdev_set_pcl_cmd - Send Vdev PCL command to fw
  215. * @wmi_handle: WMI handle
  216. * @params: Set VDEV pcl parameters
  217. *
  218. * Return: QDF_STATUS
  219. */
  220. QDF_STATUS wmi_unified_vdev_set_pcl_cmd(wmi_unified_t wmi_handle,
  221. struct set_pcl_cmd_params *params);
  222. /**
  223. * wmi_extract_roam_sync_event - Extract roam sync event
  224. * @wmi_handle: WMI handle
  225. * @evt_buf: Event buffer
  226. * @len: evt buffer data len
  227. * @synd_ind: roam sync ptr
  228. *
  229. * This api will allocate memory for roam sync info, extract
  230. * the information sent by FW and pass to CM.The memory will be
  231. * freed by target_if_cm_roam_sync_event.
  232. *
  233. * Return: QDF_STATUS
  234. */
  235. QDF_STATUS
  236. wmi_extract_roam_sync_event(wmi_unified_t wmi_handle, void *evt_buf,
  237. uint32_t len,
  238. struct roam_offload_synch_ind **sync_ind);
  239. /**
  240. * wmi_extract_roam_sync_frame_event - Extract roam sync frame event
  241. * @wmi_handle: WMI handle
  242. * @event: Event buffer
  243. * @len: evt buffer data len
  244. * @frame_ptr: roam sync frame ptr
  245. *
  246. * Return: QDF_STATUS
  247. */
  248. QDF_STATUS
  249. wmi_extract_roam_sync_frame_event(wmi_unified_t wmi_handle, void *event,
  250. uint32_t len,
  251. struct roam_synch_frame_ind *frame_ptr);
  252. /**
  253. * wmi_extract_roam_event - Extract roam event
  254. * @wmi_handle: WMI handle
  255. * @event: Event data received from firmware
  256. * @data_len: Event data length received from firmware
  257. * @roam_event: Extract the event and fill in roam_event
  258. *
  259. * Return: QDF_STATUS
  260. */
  261. QDF_STATUS
  262. wmi_extract_roam_event(wmi_unified_t wmi_handle, uint8_t *event,
  263. uint32_t data_len,
  264. struct roam_offload_roam_event *roam_event);
  265. /**
  266. * wmi_extract_btm_denylist_event - Extract btm denylist event
  267. * @wmi_handle: WMI handle
  268. * @event: Event data received from firmware
  269. * @data_len: Event data length received from firmware
  270. * @dst_list: Extract the event and fill in dst_list
  271. *
  272. * Return: QDF_STATUS
  273. */
  274. QDF_STATUS
  275. wmi_extract_btm_denylist_event(wmi_unified_t wmi_handle,
  276. uint8_t *event, uint32_t data_len,
  277. struct roam_denylist_event **dst_list);
  278. /**
  279. * wmi_extract_vdev_disconnect_event - Extract disconnect event data
  280. * @wmi_handle: WMI handle
  281. * @event: Event data received from firmware
  282. * @data_len: Event data length received from firmware
  283. * @data: Extract the event and fill in data
  284. *
  285. * Return: QDF_STATUS
  286. */
  287. QDF_STATUS
  288. wmi_extract_vdev_disconnect_event(wmi_unified_t wmi_handle,
  289. uint8_t *event, uint32_t data_len,
  290. struct vdev_disconnect_event_data *data);
  291. /**
  292. * wmi_extract_roam_scan_chan_list - Extract roam scan chan list
  293. * @wmi_handle: WMI handle
  294. * @event: Event data received from firmware
  295. * @data_len: Event data length received from firmware
  296. * @data: Extract the event and fill in data
  297. *
  298. * Return: QDF_STATUS
  299. */
  300. QDF_STATUS
  301. wmi_extract_roam_scan_chan_list(wmi_unified_t wmi_handle,
  302. uint8_t *event, uint32_t data_len,
  303. struct cm_roam_scan_ch_resp **data);
  304. /**
  305. * wmi_unified_extract_roam_btm_response() - Extract BTM response
  306. * @wmi: wmi handle
  307. * @evt_buf: Pointer to the event buffer
  308. * @dst: Pointer to destination structure to fill data
  309. * @idx: TLV id
  310. *
  311. * Return: QDF_STATUS
  312. */
  313. QDF_STATUS
  314. wmi_unified_extract_roam_btm_response(wmi_unified_t wmi, void *evt_buf,
  315. struct roam_btm_response_data *dst,
  316. uint8_t idx);
  317. /**
  318. * wmi_unified_extract_roam_initial_info() - Extract initial info
  319. * @wmi: wmi handle
  320. * @evt_buf: Pointer to the event buffer
  321. * @dst: Pointer to destination structure to fill data
  322. * @idx: TLV id
  323. *
  324. * Return: QDF_STATUS
  325. */
  326. QDF_STATUS
  327. wmi_unified_extract_roam_initial_info(wmi_unified_t wmi, void *evt_buf,
  328. struct roam_initial_data *dst,
  329. uint8_t idx);
  330. /**
  331. * wmi_unified_extract_roam_msg_info() - Extract roam msg info
  332. * @wmi: wmi handle
  333. * @evt_buf: Pointer to the event buffer
  334. * @dst: Pointer to destination structure to fill data
  335. * @idx: TLV id
  336. *
  337. * Return: QDF_STATUS
  338. */
  339. QDF_STATUS
  340. wmi_unified_extract_roam_msg_info(wmi_unified_t wmi, void *evt_buf,
  341. struct roam_msg_info *dst, uint8_t idx);
  342. /**
  343. * wmi_extract_roam_stats_event - Extract roam stats event
  344. * @wmi_handle: WMI handle
  345. * @event: Event data received from firmware
  346. * @data_len: Event data length received from firmware
  347. * @stats_info: Extract the event and fill in stats_info
  348. *
  349. * Return: QDF_STATUS
  350. */
  351. QDF_STATUS
  352. wmi_extract_roam_stats_event(wmi_unified_t wmi_handle,
  353. uint8_t *event, uint32_t data_len,
  354. struct roam_stats_event **stats_info);
  355. /**
  356. * wmi_unified_extract_roam_extract_frame_info() - Extract the roam frame
  357. * info TLV from roam stats event
  358. * @wmi: wmi handle
  359. * @evt_buf: Pointer to the event buffer
  360. * @dst: Pointer to destination structure to fill data
  361. * @idx: Index of the TLV to read
  362. * @num_frames: Number of TLV to read
  363. *
  364. * Return: QDF_STATUS
  365. */
  366. QDF_STATUS
  367. wmi_unified_extract_roam_extract_frame_info(wmi_unified_t wmi, void *evt_buf,
  368. struct roam_frame_stats *dst,
  369. uint8_t idx, uint8_t num_frames);
  370. /**
  371. * wmi_extract_auth_offload_event - Extract auth offload event
  372. * @wmi_handle: WMI handle
  373. * @event: Event data received from firmware
  374. * @data_len: Event data length received from firmware
  375. * @roam_event: Extract the event and fill in auth_event
  376. *
  377. * Return: QDF_STATUS
  378. */
  379. QDF_STATUS
  380. wmi_extract_auth_offload_event(wmi_unified_t wmi_handle,
  381. uint8_t *event, uint32_t data_len,
  382. struct auth_offload_event *auth_event);
  383. /**
  384. * wmi_extract_roam_pmkid_request - Extract roam pmkid list
  385. * @wmi_handle: WMI handle
  386. * @event: Event data received from firmware
  387. * @data_len: Event data length received from firmware
  388. * @data: Extract the event and fill in data
  389. *
  390. * Return: QDF_STATUS
  391. */
  392. QDF_STATUS
  393. wmi_extract_roam_pmkid_request(wmi_unified_t wmi_handle,
  394. uint8_t *event, uint32_t data_len,
  395. struct roam_pmkid_req_event **data);
  396. /**
  397. * wmi_extract_roam_candidate_frame_event() - Extract the roam candidate
  398. * scan entry and update the scan db
  399. * @wmi_handle: wmi handle
  400. * @event: Event data received from firmware
  401. * @len: Event data length received from firmware
  402. * @data: Extract the event and fill in data
  403. */
  404. QDF_STATUS
  405. wmi_extract_roam_candidate_frame_event(wmi_unified_t wmi_handle, uint8_t *event,
  406. uint32_t len,
  407. struct roam_scan_candidate_frame *data);
  408. #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
  409. /**
  410. * wmi_unified_roam_scan_offload_mode_cmd() - set roam scan parameters
  411. * @wmi_handle: wmi handle
  412. * @scan_cmd_fp: scan related parameters
  413. * @rso_cfg: roam scan offload parameters
  414. *
  415. * This function reads the incoming @rso_cfg and fill in the destination
  416. * WMI structure and send down the roam scan configs down to the firmware
  417. *
  418. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  419. */
  420. QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(
  421. wmi_unified_t wmi_handle,
  422. struct wlan_roam_scan_offload_params *rso_cfg);
  423. /**
  424. * wmi_unified_send_roam_scan_offload_ap_cmd() - set roam ap profile in fw
  425. * @wmi_handle: wmi handle
  426. * @ap_profile: ap profile params
  427. *
  428. * Send WMI_ROAM_AP_PROFILE to firmware
  429. *
  430. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  431. */
  432. QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(
  433. wmi_unified_t wmi_handle,
  434. struct ap_profile_params *ap_profile);
  435. /**
  436. * wmi_unified_roam_scan_offload_cmd() - set roam offload command
  437. * @wmi_handle: wmi handle
  438. * @command: command
  439. * @vdev_id: vdev id
  440. *
  441. * This function set roam offload command to fw.
  442. *
  443. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  444. */
  445. QDF_STATUS wmi_unified_roam_scan_offload_cmd(wmi_unified_t wmi_handle,
  446. uint32_t command,
  447. uint32_t vdev_id);
  448. /**
  449. * wmi_unified_roam_scan_offload_chan_list_cmd - Roam scan offload channel
  450. * list command
  451. * @wmi_handle: wmi handle
  452. * @rso_ch_info: roam scan offload channel info
  453. *
  454. * Return: QDF_STATUS
  455. */
  456. QDF_STATUS
  457. wmi_unified_roam_scan_offload_chan_list_cmd(wmi_unified_t wmi_handle,
  458. struct wlan_roam_scan_channel_list *rso_ch_info);
  459. /**
  460. * wmi_unified_roam_scan_offload_rssi_change_cmd() - set roam offload RSSI
  461. * threshold
  462. * @wmi_handle: wmi handle
  463. * @params: RSSI change params
  464. *
  465. * Send WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD parameters to fw.
  466. *
  467. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  468. */
  469. QDF_STATUS
  470. wmi_unified_roam_scan_offload_rssi_change_cmd(
  471. wmi_unified_t wmi_handle,
  472. struct wlan_roam_rssi_change_params *params);
  473. /**
  474. * wmi_unified_set_per_roam_config() - set PER roam config in FW
  475. * @wmi_handle: wmi handle
  476. * @req_buf: per roam config request buffer
  477. *
  478. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  479. */
  480. QDF_STATUS
  481. wmi_unified_set_per_roam_config(wmi_unified_t wmi_handle,
  482. struct wlan_per_roam_config_req *req_buf);
  483. /**
  484. * wmi_unified_send_limit_off_chan_cmd() - send wmi cmd of limit off channel
  485. * configuration params
  486. * @wmi_handle: wmi handler
  487. * @wmi_param: pointer to wmi_limit_off_chan_param
  488. *
  489. * Return: QDF_STATUS_SUCCESS on success and QDF failure reason code on failure
  490. */
  491. QDF_STATUS wmi_unified_send_limit_off_chan_cmd(
  492. wmi_unified_t wmi_handle,
  493. struct wmi_limit_off_chan_param *wmi_param);
  494. #ifdef WLAN_FEATURE_FILS_SK
  495. /*
  496. * wmi_unified_roam_send_hlp_cmd() -send HLP command info
  497. * @wmi_handle: wma handle
  498. * @req_buf: Pointer to HLP params
  499. *
  500. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  501. */
  502. QDF_STATUS wmi_unified_roam_send_hlp_cmd(wmi_unified_t wmi_handle,
  503. struct hlp_params *req_buf);
  504. #endif /* WLAN_FEATURE_FILS_SK */
  505. /**
  506. * wmi_unified_send_btm_config() - Send BTM config to fw
  507. * @wmi_handle: wmi handle
  508. * @params: pointer to wlan_roam_btm_config
  509. *
  510. * Return: QDF_STATUS
  511. */
  512. QDF_STATUS wmi_unified_send_btm_config(wmi_unified_t wmi_handle,
  513. struct wlan_roam_btm_config *params);
  514. /**
  515. * wmi_unified_send_bss_load_config() - Send bss load trigger params to fw
  516. * @wmi_handle: wmi handle
  517. * @params: pointer to wlan_roam_bss_load_config
  518. *
  519. * Return: QDF_STATUS
  520. */
  521. QDF_STATUS wmi_unified_send_bss_load_config(
  522. wmi_unified_t wmi_handle,
  523. struct wlan_roam_bss_load_config *params);
  524. /**
  525. * wmi_unified_offload_11k_cmd() - send 11k offload command
  526. * @wmi_handle: wmi handle
  527. * @params: 11k offload params
  528. *
  529. * This function passes the 11k offload command params to FW
  530. *
  531. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  532. */
  533. QDF_STATUS
  534. wmi_unified_offload_11k_cmd(wmi_unified_t wmi_handle,
  535. struct wlan_roam_11k_offload_params *params);
  536. /**
  537. * wmi_unified_invoke_neighbor_report_cmd() - send invoke neighbor report cmd
  538. * @wmi_handle: wmi handle
  539. * @params: invoke neighbor report params
  540. *
  541. * This function passes the invoke neighbor report command to fw
  542. *
  543. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  544. */
  545. QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(
  546. wmi_unified_t wmi_handle,
  547. struct wmi_invoke_neighbor_report_params *params);
  548. /**
  549. * wmi_unified_get_roam_scan_ch_list() - send roam scan channel list get cmd
  550. * @wmi_handle: wmi handle
  551. * @vdev_id: vdev id
  552. *
  553. * This function sends roam scan channel list get command to firmware.
  554. *
  555. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  556. */
  557. QDF_STATUS wmi_unified_get_roam_scan_ch_list(wmi_unified_t wmi_handle,
  558. uint8_t vdev_id);
  559. #endif /* _WMI_UNIFIED_ROAM_API_H_ */