wmi_unified_roam_api.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. /*
  2. * Copyright (c) 2013-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: Implement API's specific to ROAMING component.
  18. */
  19. #ifndef _WMI_UNIFIED_ROAM_API_H_
  20. #define _WMI_UNIFIED_ROAM_API_H_
  21. #include <wmi_unified_roam_param.h>
  22. #include "wlan_cm_roam_public_struct.h"
  23. #ifdef FEATURE_LFR_SUBNET_DETECTION
  24. /**
  25. * wmi_unified_set_gateway_params_cmd() - set gateway parameters
  26. * @wmi_handle: wmi handle
  27. * @req: gateway parameter update request structure
  28. *
  29. * This function reads the incoming @req and fill in the destination
  30. * WMI structure and sends down the gateway configs down to the firmware
  31. *
  32. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures;
  33. * error number otherwise
  34. */
  35. QDF_STATUS
  36. wmi_unified_set_gateway_params_cmd(wmi_unified_t wmi_handle,
  37. struct gateway_update_req_param *req);
  38. #endif
  39. #ifdef FEATURE_RSSI_MONITOR
  40. /**
  41. * wmi_unified_set_rssi_monitoring_cmd() - set rssi monitoring
  42. * @wmi_handle: wmi handle
  43. * @req: rssi monitoring request structure
  44. *
  45. * This function reads the incoming @req and fill in the destination
  46. * WMI structure and send down the rssi monitoring configs down to the firmware
  47. *
  48. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures;
  49. * error number otherwise
  50. */
  51. QDF_STATUS
  52. wmi_unified_set_rssi_monitoring_cmd(wmi_unified_t wmi_handle,
  53. struct rssi_monitor_param *req);
  54. #endif
  55. /**
  56. * wmi_unified_roam_scan_offload_rssi_thresh_cmd() - set roam scan rssi
  57. * parameters
  58. * @wmi_handle: wmi handle
  59. * @roam_req: roam rssi related parameters
  60. *
  61. * This function reads the incoming @roam_req and fill in the destination
  62. * WMI structure and send down the roam scan rssi configs down to the firmware
  63. *
  64. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  65. */
  66. QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(
  67. wmi_unified_t wmi_handle,
  68. struct wlan_roam_offload_scan_rssi_params *roam_req);
  69. /**
  70. * wmi_unified_roam_scan_offload_scan_period() - set roam offload scan period
  71. * @wmi_handle: wmi handle
  72. * @param: pointer to roam scan period params to be sent to fw
  73. *
  74. * Send WMI_ROAM_SCAN_PERIOD parameters to fw.
  75. *
  76. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  77. */
  78. QDF_STATUS wmi_unified_roam_scan_offload_scan_period(
  79. wmi_unified_t wmi_handle, struct wlan_roam_scan_period_params *param);
  80. /**
  81. * wmi_unified_roam_mawc_params_cmd() - configure roaming MAWC parameters
  82. * @wmi_handle: wmi handle
  83. * @params: Parameters to be configured
  84. *
  85. * Pass the MAWC(Motion Aided wireless connectivity) related roaming
  86. * parameters from the host to the target
  87. *
  88. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  89. */
  90. QDF_STATUS
  91. wmi_unified_roam_mawc_params_cmd(wmi_unified_t wmi_handle,
  92. struct wlan_roam_mawc_params *params);
  93. /**
  94. * wmi_unified_roam_scan_filter_cmd() - send roam scan whitelist,
  95. * blacklist and preferred list
  96. * @wmi_handle: wmi handle
  97. * @roam_req: roam scan lists related parameters
  98. *
  99. * This function reads the incoming @roam_req and fill in the destination
  100. * WMI structure and send down the different roam scan lists down to the fw
  101. *
  102. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  103. */
  104. QDF_STATUS
  105. wmi_unified_roam_scan_filter_cmd(wmi_unified_t wmi_handle,
  106. struct roam_scan_filter_params *roam_req);
  107. #ifdef FEATURE_WLAN_ESE
  108. /**
  109. * wmi_unified_plm_stop_cmd() - plm stop request
  110. * @wmi_handle: wmi handle
  111. * @plm: plm request parameters
  112. *
  113. * This function request FW to stop PLM.
  114. *
  115. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  116. */
  117. QDF_STATUS wmi_unified_plm_stop_cmd(wmi_unified_t wmi_handle,
  118. const struct plm_req_params *plm);
  119. /**
  120. * wmi_unified_plm_start_cmd() - plm start request
  121. * @wmi_handle: wmi handle
  122. * @plm: plm request parameters
  123. *
  124. * This function request FW to start PLM.
  125. *
  126. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  127. */
  128. QDF_STATUS wmi_unified_plm_start_cmd(wmi_unified_t wmi_handle,
  129. const struct plm_req_params *plm);
  130. #endif /* FEATURE_WLAN_ESE */
  131. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  132. /* wmi_unified_set_ric_req_cmd() - set ric request element
  133. * @wmi_handle: wmi handle
  134. * @msg: message
  135. * @is_add_ts: is addts required
  136. *
  137. * This function sets ric request element for 11r roaming.
  138. *
  139. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  140. */
  141. QDF_STATUS wmi_unified_set_ric_req_cmd(wmi_unified_t wmi_handle, void *msg,
  142. uint8_t is_add_ts);
  143. /**
  144. * wmi_unified_roam_synch_complete_cmd() - roam synch complete command to fw.
  145. * @wmi_handle: wmi handle
  146. * @vdev_id: vdev id
  147. *
  148. * This function sends roam synch complete event to fw.
  149. *
  150. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  151. */
  152. QDF_STATUS wmi_unified_roam_synch_complete_cmd(wmi_unified_t wmi_handle,
  153. uint8_t vdev_id);
  154. /**
  155. * wmi_unified__roam_invoke_cmd() - send roam invoke command to fw.
  156. * @wmi_handle: wmi handle
  157. * @roaminvoke: roam invoke command
  158. *
  159. * Send roam invoke command to fw for fastreassoc.
  160. *
  161. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  162. */
  163. QDF_STATUS
  164. wmi_unified_roam_invoke_cmd(wmi_unified_t wmi_handle,
  165. struct roam_invoke_req *roaminvoke);
  166. /**
  167. * wmi_unified_set_roam_triggers() - send roam trigger bitmap
  168. * @wmi_handle: wmi handle
  169. * @triggers: Roam trigger bitmap params as defined @roam_control_trigger_reason
  170. *
  171. * This function passes the roam trigger bitmap to fw
  172. *
  173. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  174. */
  175. QDF_STATUS wmi_unified_set_roam_triggers(wmi_unified_t wmi_handle,
  176. struct wlan_roam_triggers *triggers);
  177. /**
  178. * wmi_unified_send_disconnect_roam_params() - Send disconnect roam trigger
  179. * parameters to firmware
  180. * @wmi_hdl: wmi handle
  181. * @params: pointer to wlan_roam_disconnect_params
  182. *
  183. * Return: QDF_STATUS
  184. */
  185. QDF_STATUS
  186. wmi_unified_send_disconnect_roam_params(wmi_unified_t wmi_handle,
  187. struct wlan_roam_disconnect_params *req);
  188. /**
  189. * wmi_unified_send_idle_roam_params() - Send idle roam trigger params to fw
  190. * @wmi_hdl: wmi handle
  191. * @params: pointer to wlan_roam_idle_params
  192. *
  193. * Return: QDF_STATUS
  194. */
  195. QDF_STATUS
  196. wmi_unified_send_idle_roam_params(wmi_unified_t wmi_handle,
  197. struct wlan_roam_idle_params *req);
  198. /**
  199. * wmi_unified_send_roam_preauth_status() - Send roam preauthentication status
  200. * to target.
  201. * @wmi_handle: wmi handle
  202. * @param: Roam auth status params
  203. *
  204. * This function passes preauth status of WPA3 SAE auth to firmware. It is
  205. * called when external_auth_status event is received from userspace.
  206. *
  207. * Return: QDF_STATUS
  208. */
  209. QDF_STATUS
  210. wmi_unified_send_roam_preauth_status(wmi_unified_t wmi_handle,
  211. struct wmi_roam_auth_status_params *param);
  212. /**
  213. * wmi_unified_vdev_set_pcl_cmd - Send Vdev PCL command to fw
  214. * @wmi_handle: WMI handle
  215. * @params: Set VDEV pcl parameters
  216. *
  217. * Return: QDF_STATUS
  218. */
  219. QDF_STATUS wmi_unified_vdev_set_pcl_cmd(wmi_unified_t wmi_handle,
  220. struct set_pcl_cmd_params *params);
  221. #ifdef ROAM_TARGET_IF_CONVERGENCE
  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_blacklist_event - Extract btm blacklist 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_blacklist_event(wmi_unified_t wmi_handle,
  276. uint8_t *event, uint32_t data_len,
  277. struct roam_blacklist_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_extract_auth_offload_event - Extract auth offload event
  357. * @wmi_handle: WMI handle
  358. * @event: Event data received from firmware
  359. * @data_len: Event data length received from firmware
  360. * @roam_event: Extract the event and fill in auth_event
  361. *
  362. * Return: QDF_STATUS
  363. */
  364. QDF_STATUS
  365. wmi_extract_auth_offload_event(wmi_unified_t wmi_handle,
  366. uint8_t *event, uint32_t data_len,
  367. struct auth_offload_event *auth_event);
  368. /**
  369. * wmi_extract_roam_pmkid_request - Extract roam pmkid list
  370. * @wmi_handle: WMI handle
  371. * @event: Event data received from firmware
  372. * @data_len: Event data length received from firmware
  373. * @data: Extract the event and fill in data
  374. *
  375. * Return: QDF_STATUS
  376. */
  377. QDF_STATUS
  378. wmi_extract_roam_pmkid_request(wmi_unified_t wmi_handle,
  379. uint8_t *event, uint32_t data_len,
  380. struct roam_pmkid_req_event **data);
  381. #endif /* ROAM_TARGET_IF_CONVERGENCE */
  382. #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
  383. /**
  384. * wmi_unified_roam_scan_offload_mode_cmd() - set roam scan parameters
  385. * @wmi_handle: wmi handle
  386. * @scan_cmd_fp: scan related parameters
  387. * @rso_cfg: roam scan offload parameters
  388. *
  389. * This function reads the incoming @rso_cfg and fill in the destination
  390. * WMI structure and send down the roam scan configs down to the firmware
  391. *
  392. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  393. */
  394. QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(
  395. wmi_unified_t wmi_handle,
  396. struct wlan_roam_scan_offload_params *rso_cfg);
  397. /**
  398. * wmi_unified_send_roam_scan_offload_ap_cmd() - set roam ap profile in fw
  399. * @wmi_handle: wmi handle
  400. * @ap_profile: ap profile params
  401. *
  402. * Send WMI_ROAM_AP_PROFILE to firmware
  403. *
  404. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  405. */
  406. QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(
  407. wmi_unified_t wmi_handle,
  408. struct ap_profile_params *ap_profile);
  409. /**
  410. * wmi_unified_roam_scan_offload_cmd() - set roam offload command
  411. * @wmi_handle: wmi handle
  412. * @command: command
  413. * @vdev_id: vdev id
  414. *
  415. * This function set roam offload command to fw.
  416. *
  417. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  418. */
  419. QDF_STATUS wmi_unified_roam_scan_offload_cmd(wmi_unified_t wmi_handle,
  420. uint32_t command,
  421. uint32_t vdev_id);
  422. /**
  423. * wmi_unified_roam_scan_offload_chan_list_cmd - Roam scan offload channel
  424. * list command
  425. * @wmi_handle: wmi handle
  426. * @rso_ch_info: roam scan offload channel info
  427. *
  428. * Return: QDF_STATUS
  429. */
  430. QDF_STATUS
  431. wmi_unified_roam_scan_offload_chan_list_cmd(wmi_unified_t wmi_handle,
  432. struct wlan_roam_scan_channel_list *rso_ch_info);
  433. /**
  434. * wmi_unified_roam_scan_offload_rssi_change_cmd() - set roam offload RSSI
  435. * threshold
  436. * @wmi_handle: wmi handle
  437. * @params: RSSI change params
  438. *
  439. * Send WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD parameters to fw.
  440. *
  441. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  442. */
  443. QDF_STATUS
  444. wmi_unified_roam_scan_offload_rssi_change_cmd(
  445. wmi_unified_t wmi_handle,
  446. struct wlan_roam_rssi_change_params *params);
  447. /**
  448. * wmi_unified_set_per_roam_config() - set PER roam config in FW
  449. * @wmi_handle: wmi handle
  450. * @req_buf: per roam config request buffer
  451. *
  452. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  453. */
  454. QDF_STATUS
  455. wmi_unified_set_per_roam_config(wmi_unified_t wmi_handle,
  456. struct wlan_per_roam_config_req *req_buf);
  457. /**
  458. * wmi_unified_send_limit_off_chan_cmd() - send wmi cmd of limit off channel
  459. * configuration params
  460. * @wmi_handle: wmi handler
  461. * @wmi_param: pointer to wmi_limit_off_chan_param
  462. *
  463. * Return: QDF_STATUS_SUCCESS on success and QDF failure reason code on failure
  464. */
  465. QDF_STATUS wmi_unified_send_limit_off_chan_cmd(
  466. wmi_unified_t wmi_handle,
  467. struct wmi_limit_off_chan_param *wmi_param);
  468. #ifdef WLAN_FEATURE_FILS_SK
  469. /*
  470. * wmi_unified_roam_send_hlp_cmd() -send HLP command info
  471. * @wmi_handle: wma handle
  472. * @req_buf: Pointer to HLP params
  473. *
  474. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  475. */
  476. QDF_STATUS wmi_unified_roam_send_hlp_cmd(wmi_unified_t wmi_handle,
  477. struct hlp_params *req_buf);
  478. #endif /* WLAN_FEATURE_FILS_SK */
  479. /**
  480. * wmi_unified_send_btm_config() - Send BTM config to fw
  481. * @wmi_handle: wmi handle
  482. * @params: pointer to wlan_roam_btm_config
  483. *
  484. * Return: QDF_STATUS
  485. */
  486. QDF_STATUS wmi_unified_send_btm_config(wmi_unified_t wmi_handle,
  487. struct wlan_roam_btm_config *params);
  488. /**
  489. * wmi_unified_send_bss_load_config() - Send bss load trigger params to fw
  490. * @wmi_handle: wmi handle
  491. * @params: pointer to wlan_roam_bss_load_config
  492. *
  493. * Return: QDF_STATUS
  494. */
  495. QDF_STATUS wmi_unified_send_bss_load_config(
  496. wmi_unified_t wmi_handle,
  497. struct wlan_roam_bss_load_config *params);
  498. /**
  499. * wmi_unified_offload_11k_cmd() - send 11k offload command
  500. * @wmi_handle: wmi handle
  501. * @params: 11k offload params
  502. *
  503. * This function passes the 11k offload command params to FW
  504. *
  505. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  506. */
  507. QDF_STATUS
  508. wmi_unified_offload_11k_cmd(wmi_unified_t wmi_handle,
  509. struct wlan_roam_11k_offload_params *params);
  510. /**
  511. * wmi_unified_invoke_neighbor_report_cmd() - send invoke neighbor report cmd
  512. * @wmi_handle: wmi handle
  513. * @params: invoke neighbor report params
  514. *
  515. * This function passes the invoke neighbor report command to fw
  516. *
  517. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  518. */
  519. QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(
  520. wmi_unified_t wmi_handle,
  521. struct wmi_invoke_neighbor_report_params *params);
  522. /**
  523. * wmi_unified_get_roam_scan_ch_list() - send roam scan channel list get cmd
  524. * @wmi_handle: wmi handle
  525. * @vdev_id: vdev id
  526. *
  527. * This function sends roam scan channel list get command to firmware.
  528. *
  529. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  530. */
  531. QDF_STATUS wmi_unified_get_roam_scan_ch_list(wmi_unified_t wmi_handle,
  532. uint8_t vdev_id);
  533. #endif /* _WMI_UNIFIED_ROAM_API_H_ */