wmi_unified_roam_api.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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. #if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
  133. /**
  134. * wmi_extract_roam_event - Extract roam event
  135. * @wmi_handle: WMI handle
  136. * @event: Event data received from firmware
  137. * @data_len: Event data length received from firmware
  138. * @roam_event: Extract the event and fill in roam_event
  139. *
  140. * Return: QDF_STATUS
  141. */
  142. QDF_STATUS
  143. wmi_extract_roam_event(wmi_unified_t wmi_handle, uint8_t *event,
  144. uint32_t data_len,
  145. struct roam_offload_roam_event *roam_event);
  146. #endif /* WLAN_FEATURE_HOST_ROAM || WLAN_FEATURE_ROAM_OFFLOAD */
  147. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  148. /* wmi_unified_set_ric_req_cmd() - set ric request element
  149. * @wmi_handle: wmi handle
  150. * @msg: message
  151. * @is_add_ts: is addts required
  152. *
  153. * This function sets ric request element for 11r roaming.
  154. *
  155. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  156. */
  157. QDF_STATUS wmi_unified_set_ric_req_cmd(wmi_unified_t wmi_handle, void *msg,
  158. uint8_t is_add_ts);
  159. /**
  160. * wmi_unified_roam_synch_complete_cmd() - roam synch complete command to fw.
  161. * @wmi_handle: wmi handle
  162. * @vdev_id: vdev id
  163. *
  164. * This function sends roam synch complete event to fw.
  165. *
  166. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  167. */
  168. QDF_STATUS wmi_unified_roam_synch_complete_cmd(wmi_unified_t wmi_handle,
  169. uint8_t vdev_id);
  170. /**
  171. * wmi_unified__roam_invoke_cmd() - send roam invoke command to fw.
  172. * @wmi_handle: wmi handle
  173. * @roaminvoke: roam invoke command
  174. *
  175. * Send roam invoke command to fw for fastreassoc.
  176. *
  177. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  178. */
  179. QDF_STATUS
  180. wmi_unified_roam_invoke_cmd(wmi_unified_t wmi_handle,
  181. struct roam_invoke_req *roaminvoke);
  182. /**
  183. * wmi_unified_set_roam_triggers() - send roam trigger bitmap
  184. * @wmi_handle: wmi handle
  185. * @triggers: Roam trigger bitmap params as defined @roam_control_trigger_reason
  186. *
  187. * This function passes the roam trigger bitmap to fw
  188. *
  189. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  190. */
  191. QDF_STATUS wmi_unified_set_roam_triggers(wmi_unified_t wmi_handle,
  192. struct wlan_roam_triggers *triggers);
  193. /**
  194. * wmi_unified_send_disconnect_roam_params() - Send disconnect roam trigger
  195. * parameters to firmware
  196. * @wmi_hdl: wmi handle
  197. * @params: pointer to wlan_roam_disconnect_params
  198. *
  199. * Return: QDF_STATUS
  200. */
  201. QDF_STATUS
  202. wmi_unified_send_disconnect_roam_params(wmi_unified_t wmi_handle,
  203. struct wlan_roam_disconnect_params *req);
  204. /**
  205. * wmi_unified_send_idle_roam_params() - Send idle roam trigger params to fw
  206. * @wmi_hdl: wmi handle
  207. * @params: pointer to wlan_roam_idle_params
  208. *
  209. * Return: QDF_STATUS
  210. */
  211. QDF_STATUS
  212. wmi_unified_send_idle_roam_params(wmi_unified_t wmi_handle,
  213. struct wlan_roam_idle_params *req);
  214. /**
  215. * wmi_unified_send_roam_preauth_status() - Send roam preauthentication status
  216. * to target.
  217. * @wmi_handle: wmi handle
  218. * @param: Roam auth status params
  219. *
  220. * This function passes preauth status of WPA3 SAE auth to firmware. It is
  221. * called when external_auth_status event is received from userspace.
  222. *
  223. * Return: QDF_STATUS
  224. */
  225. QDF_STATUS
  226. wmi_unified_send_roam_preauth_status(wmi_unified_t wmi_handle,
  227. struct wmi_roam_auth_status_params *param);
  228. /**
  229. * wmi_unified_vdev_set_pcl_cmd - Send Vdev PCL command to fw
  230. * @wmi_handle: WMI handle
  231. * @params: Set VDEV pcl parameters
  232. *
  233. * Return: QDF_STATUS
  234. */
  235. QDF_STATUS wmi_unified_vdev_set_pcl_cmd(wmi_unified_t wmi_handle,
  236. struct set_pcl_cmd_params *params);
  237. /**
  238. * wmi_extract_roam_sync_event - Extract roam sync event
  239. * @wmi_handle: WMI handle
  240. * @evt_buf: Event buffer
  241. * @len: evt buffer data len
  242. * @synd_ind: roam sync ptr
  243. *
  244. * This api will allocate memory for roam sync info, extract
  245. * the information sent by FW and pass to CM.The memory will be
  246. * freed by target_if_cm_roam_sync_event.
  247. *
  248. * Return: QDF_STATUS
  249. */
  250. QDF_STATUS
  251. wmi_extract_roam_sync_event(wmi_unified_t wmi_handle, void *evt_buf,
  252. uint32_t len,
  253. struct roam_offload_synch_ind **sync_ind);
  254. /**
  255. * wmi_extract_roam_sync_frame_event - Extract roam sync frame event
  256. * @wmi_handle: WMI handle
  257. * @event: Event buffer
  258. * @len: evt buffer data len
  259. * @frame_ptr: roam sync frame ptr
  260. *
  261. * Return: QDF_STATUS
  262. */
  263. QDF_STATUS
  264. wmi_extract_roam_sync_frame_event(wmi_unified_t wmi_handle, void *event,
  265. uint32_t len,
  266. struct roam_synch_frame_ind *frame_ptr);
  267. /**
  268. * wmi_extract_btm_denylist_event - Extract btm denylist event
  269. * @wmi_handle: WMI handle
  270. * @event: Event data received from firmware
  271. * @data_len: Event data length received from firmware
  272. * @dst_list: Extract the event and fill in dst_list
  273. *
  274. * Return: QDF_STATUS
  275. */
  276. QDF_STATUS
  277. wmi_extract_btm_denylist_event(wmi_unified_t wmi_handle,
  278. uint8_t *event, uint32_t data_len,
  279. struct roam_denylist_event **dst_list);
  280. /**
  281. * wmi_extract_vdev_disconnect_event - Extract disconnect event data
  282. * @wmi_handle: WMI handle
  283. * @event: Event data received from firmware
  284. * @data_len: Event data length received from firmware
  285. * @data: Extract the event and fill in data
  286. *
  287. * Return: QDF_STATUS
  288. */
  289. QDF_STATUS
  290. wmi_extract_vdev_disconnect_event(wmi_unified_t wmi_handle,
  291. uint8_t *event, uint32_t data_len,
  292. struct vdev_disconnect_event_data *data);
  293. /**
  294. * wmi_extract_roam_scan_chan_list - Extract roam scan chan list
  295. * @wmi_handle: WMI handle
  296. * @event: Event data received from firmware
  297. * @data_len: Event data length received from firmware
  298. * @data: Extract the event and fill in data
  299. *
  300. * Return: QDF_STATUS
  301. */
  302. QDF_STATUS
  303. wmi_extract_roam_scan_chan_list(wmi_unified_t wmi_handle,
  304. uint8_t *event, uint32_t data_len,
  305. struct cm_roam_scan_ch_resp **data);
  306. /**
  307. * wmi_unified_extract_roam_btm_response() - Extract BTM response
  308. * @wmi: wmi handle
  309. * @evt_buf: Pointer to the event buffer
  310. * @dst: Pointer to destination structure to fill data
  311. * @idx: TLV id
  312. *
  313. * Return: QDF_STATUS
  314. */
  315. QDF_STATUS
  316. wmi_unified_extract_roam_btm_response(wmi_unified_t wmi, void *evt_buf,
  317. struct roam_btm_response_data *dst,
  318. uint8_t idx);
  319. /**
  320. * wmi_unified_extract_roam_initial_info() - Extract initial info
  321. * @wmi: wmi handle
  322. * @evt_buf: Pointer to the event buffer
  323. * @dst: Pointer to destination structure to fill data
  324. * @idx: TLV id
  325. *
  326. * Return: QDF_STATUS
  327. */
  328. QDF_STATUS
  329. wmi_unified_extract_roam_initial_info(wmi_unified_t wmi, void *evt_buf,
  330. struct roam_initial_data *dst,
  331. uint8_t idx);
  332. /**
  333. * wmi_unified_extract_roam_msg_info() - Extract roam msg info
  334. * @wmi: wmi handle
  335. * @evt_buf: Pointer to the event buffer
  336. * @dst: Pointer to destination structure to fill data
  337. * @idx: TLV id
  338. *
  339. * Return: QDF_STATUS
  340. */
  341. QDF_STATUS
  342. wmi_unified_extract_roam_msg_info(wmi_unified_t wmi, void *evt_buf,
  343. struct roam_msg_info *dst, uint8_t idx);
  344. /**
  345. * wmi_extract_roam_stats_event - Extract roam stats event
  346. * @wmi_handle: WMI handle
  347. * @event: Event data received from firmware
  348. * @data_len: Event data length received from firmware
  349. * @stats_info: Extract the event and fill in stats_info
  350. *
  351. * Return: QDF_STATUS
  352. */
  353. QDF_STATUS
  354. wmi_extract_roam_stats_event(wmi_unified_t wmi_handle,
  355. uint8_t *event, uint32_t data_len,
  356. struct roam_stats_event **stats_info);
  357. /**
  358. * wmi_unified_extract_roam_extract_frame_info() - Extract the roam frame
  359. * info TLV from roam stats event
  360. * @wmi: wmi handle
  361. * @evt_buf: Pointer to the event buffer
  362. * @dst: Pointer to destination structure to fill data
  363. * @idx: Index of the TLV to read
  364. * @num_frames: Number of TLV to read
  365. *
  366. * Return: QDF_STATUS
  367. */
  368. QDF_STATUS
  369. wmi_unified_extract_roam_extract_frame_info(wmi_unified_t wmi, void *evt_buf,
  370. struct roam_frame_stats *dst,
  371. uint8_t idx, uint8_t num_frames);
  372. /**
  373. * wmi_extract_auth_offload_event - Extract auth offload event
  374. * @wmi_handle: WMI handle
  375. * @event: Event data received from firmware
  376. * @data_len: Event data length received from firmware
  377. * @roam_event: Extract the event and fill in auth_event
  378. *
  379. * Return: QDF_STATUS
  380. */
  381. QDF_STATUS
  382. wmi_extract_auth_offload_event(wmi_unified_t wmi_handle,
  383. uint8_t *event, uint32_t data_len,
  384. struct auth_offload_event *auth_event);
  385. /**
  386. * wmi_extract_roam_pmkid_request - Extract roam pmkid list
  387. * @wmi_handle: WMI handle
  388. * @event: Event data received from firmware
  389. * @data_len: Event data length received from firmware
  390. * @data: Extract the event and fill in data
  391. *
  392. * Return: QDF_STATUS
  393. */
  394. QDF_STATUS
  395. wmi_extract_roam_pmkid_request(wmi_unified_t wmi_handle,
  396. uint8_t *event, uint32_t data_len,
  397. struct roam_pmkid_req_event **data);
  398. /**
  399. * wmi_extract_roam_candidate_frame_event() - Extract the roam candidate
  400. * scan entry and update the scan db
  401. * @wmi_handle: wmi handle
  402. * @event: Event data received from firmware
  403. * @len: Event data length received from firmware
  404. * @data: Extract the event and fill in data
  405. */
  406. QDF_STATUS
  407. wmi_extract_roam_candidate_frame_event(wmi_unified_t wmi_handle, uint8_t *event,
  408. uint32_t len,
  409. struct roam_scan_candidate_frame *data);
  410. #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
  411. /**
  412. * wmi_unified_roam_scan_offload_mode_cmd() - set roam scan parameters
  413. * @wmi_handle: wmi handle
  414. * @scan_cmd_fp: scan related parameters
  415. * @rso_cfg: roam scan offload parameters
  416. *
  417. * This function reads the incoming @rso_cfg and fill in the destination
  418. * WMI structure and send down the roam scan configs down to the firmware
  419. *
  420. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  421. */
  422. QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(
  423. wmi_unified_t wmi_handle,
  424. struct wlan_roam_scan_offload_params *rso_cfg);
  425. /**
  426. * wmi_unified_send_roam_scan_offload_ap_cmd() - set roam ap profile in fw
  427. * @wmi_handle: wmi handle
  428. * @ap_profile: ap profile params
  429. *
  430. * Send WMI_ROAM_AP_PROFILE to firmware
  431. *
  432. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  433. */
  434. QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(
  435. wmi_unified_t wmi_handle,
  436. struct ap_profile_params *ap_profile);
  437. /**
  438. * wmi_unified_roam_scan_offload_cmd() - set roam offload command
  439. * @wmi_handle: wmi handle
  440. * @command: command
  441. * @vdev_id: vdev id
  442. *
  443. * This function set roam offload command to fw.
  444. *
  445. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  446. */
  447. QDF_STATUS wmi_unified_roam_scan_offload_cmd(wmi_unified_t wmi_handle,
  448. uint32_t command,
  449. uint32_t vdev_id);
  450. /**
  451. * wmi_unified_roam_scan_offload_chan_list_cmd - Roam scan offload channel
  452. * list command
  453. * @wmi_handle: wmi handle
  454. * @rso_ch_info: roam scan offload channel info
  455. *
  456. * Return: QDF_STATUS
  457. */
  458. QDF_STATUS
  459. wmi_unified_roam_scan_offload_chan_list_cmd(wmi_unified_t wmi_handle,
  460. struct wlan_roam_scan_channel_list *rso_ch_info);
  461. /**
  462. * wmi_unified_roam_scan_offload_rssi_change_cmd() - set roam offload RSSI
  463. * threshold
  464. * @wmi_handle: wmi handle
  465. * @params: RSSI change params
  466. *
  467. * Send WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD parameters to fw.
  468. *
  469. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  470. */
  471. QDF_STATUS
  472. wmi_unified_roam_scan_offload_rssi_change_cmd(
  473. wmi_unified_t wmi_handle,
  474. struct wlan_roam_rssi_change_params *params);
  475. /**
  476. * wmi_unified_set_per_roam_config() - set PER roam config in FW
  477. * @wmi_handle: wmi handle
  478. * @req_buf: per roam config request buffer
  479. *
  480. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  481. */
  482. QDF_STATUS
  483. wmi_unified_set_per_roam_config(wmi_unified_t wmi_handle,
  484. struct wlan_per_roam_config_req *req_buf);
  485. /**
  486. * wmi_unified_send_limit_off_chan_cmd() - send wmi cmd of limit off channel
  487. * configuration params
  488. * @wmi_handle: wmi handler
  489. * @wmi_param: pointer to wmi_limit_off_chan_param
  490. *
  491. * Return: QDF_STATUS_SUCCESS on success and QDF failure reason code on failure
  492. */
  493. QDF_STATUS wmi_unified_send_limit_off_chan_cmd(
  494. wmi_unified_t wmi_handle,
  495. struct wmi_limit_off_chan_param *wmi_param);
  496. #ifdef WLAN_FEATURE_FILS_SK
  497. /*
  498. * wmi_unified_roam_send_hlp_cmd() -send HLP command info
  499. * @wmi_handle: wma handle
  500. * @req_buf: Pointer to HLP params
  501. *
  502. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  503. */
  504. QDF_STATUS wmi_unified_roam_send_hlp_cmd(wmi_unified_t wmi_handle,
  505. struct hlp_params *req_buf);
  506. #endif /* WLAN_FEATURE_FILS_SK */
  507. /**
  508. * wmi_unified_send_btm_config() - Send BTM config to fw
  509. * @wmi_handle: wmi handle
  510. * @params: pointer to wlan_roam_btm_config
  511. *
  512. * Return: QDF_STATUS
  513. */
  514. QDF_STATUS wmi_unified_send_btm_config(wmi_unified_t wmi_handle,
  515. struct wlan_roam_btm_config *params);
  516. /**
  517. * wmi_unified_send_bss_load_config() - Send bss load trigger params to fw
  518. * @wmi_handle: wmi handle
  519. * @params: pointer to wlan_roam_bss_load_config
  520. *
  521. * Return: QDF_STATUS
  522. */
  523. QDF_STATUS wmi_unified_send_bss_load_config(
  524. wmi_unified_t wmi_handle,
  525. struct wlan_roam_bss_load_config *params);
  526. /**
  527. * wmi_unified_offload_11k_cmd() - send 11k offload command
  528. * @wmi_handle: wmi handle
  529. * @params: 11k offload params
  530. *
  531. * This function passes the 11k offload command params to FW
  532. *
  533. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  534. */
  535. QDF_STATUS
  536. wmi_unified_offload_11k_cmd(wmi_unified_t wmi_handle,
  537. struct wlan_roam_11k_offload_params *params);
  538. /**
  539. * wmi_unified_invoke_neighbor_report_cmd() - send invoke neighbor report cmd
  540. * @wmi_handle: wmi handle
  541. * @params: invoke neighbor report params
  542. *
  543. * This function passes the invoke neighbor report command to fw
  544. *
  545. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  546. */
  547. QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(
  548. wmi_unified_t wmi_handle,
  549. struct wmi_invoke_neighbor_report_params *params);
  550. /**
  551. * wmi_unified_get_roam_scan_ch_list() - send roam scan channel list get cmd
  552. * @wmi_handle: wmi handle
  553. * @vdev_id: vdev id
  554. *
  555. * This function sends roam scan channel list get command to firmware.
  556. *
  557. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  558. */
  559. QDF_STATUS wmi_unified_get_roam_scan_ch_list(wmi_unified_t wmi_handle,
  560. uint8_t vdev_id);
  561. #endif /* _WMI_UNIFIED_ROAM_API_H_ */