wmi_unified_roam_api.h 20 KB

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