Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 1 | /* |
Yeshwanth Sriram Guntuka | f70a37b | 2018-01-18 16:08:25 +0530 | [diff] [blame] | 2 | * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | * DOC: contains scan north bound interface api |
| 21 | */ |
| 22 | |
| 23 | #ifndef _WLAN_SCAN_UCFG_API_H_ |
| 24 | #define _WLAN_SCAN_UCFG_API_H_ |
| 25 | |
| 26 | #include <scheduler_api.h> |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 27 | #include <wlan_objmgr_psoc_obj.h> |
| 28 | #include <wlan_objmgr_pdev_obj.h> |
| 29 | #include <wlan_objmgr_vdev_obj.h> |
Om Prakash Tripathi | 22f95dc | 2016-12-19 10:45:59 +0530 | [diff] [blame] | 30 | #include <wlan_scan_public_structs.h> |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 31 | |
| 32 | /** |
| 33 | * ucfg_scan_register_requester() - assigns requester ID to caller and |
| 34 | * registers scan event call back handler |
| 35 | * @psoc: psoc object |
| 36 | * @module_name:name of requester module |
| 37 | * @event_cb: event callback function pointer |
| 38 | * @arg: argument to @event_cb |
| 39 | * |
| 40 | * API, allows other components to allocate requester id |
| 41 | * Normally used by modules at init time to register their callback |
| 42 | * and get one requester id. @event_cb will be invoked for |
| 43 | * all scan events whose requester id matches with @requester. |
| 44 | * |
| 45 | * Return: assigned non zero requester id for success |
| 46 | * zero (0) for failure |
| 47 | */ |
| 48 | wlan_scan_requester |
| 49 | ucfg_scan_register_requester(struct wlan_objmgr_psoc *psoc, |
| 50 | uint8_t *module_name, scan_event_handler event_cb, void *arg); |
| 51 | |
| 52 | /** |
| 53 | * ucfg_scan_unregister_requester() -reclaims previously allocated requester ID |
| 54 | * @psoc: psoc object |
| 55 | * @requester: requester ID to reclaim. |
| 56 | * |
| 57 | * API, reclaims previously allocated requester id by |
| 58 | * ucfg_scan_get_req_id_reg_cb() |
| 59 | * |
| 60 | * Return: void |
| 61 | */ |
| 62 | void ucfg_scan_unregister_requester(struct wlan_objmgr_psoc *psoc, |
| 63 | wlan_scan_requester requester); |
| 64 | |
| 65 | |
| 66 | /** |
| 67 | * ucfg_get_scan_requester_name()- returns module name of requester ID owner |
| 68 | * @psoc: psoc object |
| 69 | * @requester: requester ID |
| 70 | * |
| 71 | * API, returns module name of requester id owner |
| 72 | * |
| 73 | * Return: pointer to module name or "unknown" if requester id not found. |
| 74 | */ |
| 75 | uint8_t *ucfg_get_scan_requester_name(struct wlan_objmgr_psoc *psoc, |
| 76 | wlan_scan_requester requester); |
| 77 | |
| 78 | |
| 79 | |
| 80 | /** |
| 81 | * ucfg_scan_get_scan_id() - allocates scan ID |
| 82 | * @psoc: psoc object |
| 83 | * |
| 84 | * API, allocates a new scan id for caller |
| 85 | * |
| 86 | * Return: newly allocated scan ID |
| 87 | */ |
| 88 | wlan_scan_id |
| 89 | ucfg_scan_get_scan_id(struct wlan_objmgr_psoc *psoc); |
| 90 | |
Abhishek Singh | 8c6e82d | 2017-03-03 21:57:29 +0530 | [diff] [blame] | 91 | #ifdef FEATURE_WLAN_SCAN_PNO |
| 92 | /** |
| 93 | * ucfg_scan_pno_start() - Public API to start PNO |
| 94 | * @vdev: vdev pointer |
| 95 | * @req: pno req params |
| 96 | * |
| 97 | * Return: 0 for success or error code. |
| 98 | */ |
| 99 | QDF_STATUS ucfg_scan_pno_start(struct wlan_objmgr_vdev *vdev, |
| 100 | struct pno_scan_req_params *req); |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 101 | |
| 102 | /** |
Abhishek Singh | 8c6e82d | 2017-03-03 21:57:29 +0530 | [diff] [blame] | 103 | * ucfg_scan_pno_stop() - Public API to stop PNO |
| 104 | * @vdev: vdev pointer |
| 105 | * @req: pno req params |
| 106 | * |
| 107 | * Return: 0 for success or error code. |
| 108 | */ |
| 109 | QDF_STATUS ucfg_scan_pno_stop(struct wlan_objmgr_vdev *vdev); |
| 110 | |
| 111 | /** |
| 112 | * ucfg_scan_get_pno_in_progress() - Public API to check if pno is in progress |
| 113 | * @vdev: vdev pointer |
| 114 | * |
| 115 | * Return: true if pno in progress else false. |
| 116 | */ |
| 117 | bool ucfg_scan_get_pno_in_progress(struct wlan_objmgr_vdev *vdev); |
| 118 | |
| 119 | /** |
| 120 | * ucfg_scan_get_pno_match() - Public API to check if pno matched |
| 121 | * @vdev: vdev pointer |
| 122 | * |
| 123 | * Return: true if pno matched else false. |
| 124 | */ |
| 125 | bool ucfg_scan_get_pno_match(struct wlan_objmgr_vdev *vdev); |
| 126 | |
| 127 | /** |
| 128 | * ucfg_scan_register_pno_cb() - register pno cb |
| 129 | * @psoc: psoc object |
| 130 | * @event_cb: callback function pointer |
| 131 | * @arg: argument to @event_cb |
| 132 | * |
| 133 | * Return: QDF_STATUS |
| 134 | */ |
| 135 | QDF_STATUS |
| 136 | ucfg_scan_register_pno_cb(struct wlan_objmgr_psoc *psoc, |
| 137 | scan_event_handler event_cb, void *arg); |
| 138 | |
| 139 | /** |
| 140 | * ucfg_scan_get_pno_def_params() - get the defaults pno params |
| 141 | * @vdev: vdev object |
| 142 | * @req: pno request object |
| 143 | * |
| 144 | * Return: QDF_STATUS_SUCCESS or error code |
| 145 | */ |
| 146 | QDF_STATUS |
| 147 | ucfg_scan_get_pno_def_params(struct wlan_objmgr_vdev *vdev, |
| 148 | struct pno_scan_req_params *req); |
| 149 | |
| 150 | #else |
| 151 | |
| 152 | static inline bool |
| 153 | ucfg_scan_get_pno_in_progress(struct wlan_objmgr_vdev *vdev) |
| 154 | { |
| 155 | return false; |
| 156 | } |
| 157 | |
| 158 | static inline bool |
| 159 | ucfg_scan_get_pno_match(struct wlan_objmgr_vdev *vdev) |
| 160 | { |
| 161 | return false; |
| 162 | } |
| 163 | #endif /* FEATURE_WLAN_SCAN_PNO */ |
| 164 | /** |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 165 | * ucfg_scan_start() - Public API to start a scan |
| 166 | * @req: start scan req params |
| 167 | * |
| 168 | * The Public API to start a scan. Post a msg to target_if queue |
| 169 | * |
| 170 | * Return: 0 for success or error code. |
| 171 | */ |
| 172 | QDF_STATUS |
| 173 | ucfg_scan_start(struct scan_start_request *req); |
| 174 | |
| 175 | /** |
Abhishek Singh | 65c4be7 | 2017-10-12 11:06:33 +0530 | [diff] [blame] | 176 | * ucfg_scan_set_enable() - Public API to disable/enable scans |
| 177 | * @psoc: psoc on which scans need to be disabled |
| 178 | * @enable: enable scan if true disable is false |
| 179 | * |
| 180 | * Return: QDF_STATUS. |
| 181 | */ |
| 182 | QDF_STATUS ucfg_scan_set_enable(struct wlan_objmgr_psoc *psoc, bool enable); |
| 183 | |
| 184 | /** |
| 185 | * ucfg_scan_get_enable() - Public API to get if scan is enabled or disabled |
| 186 | * @psoc: psoc on which scans status need to be checked |
| 187 | * |
| 188 | * Return: true if enabled else false. |
| 189 | */ |
| 190 | bool ucfg_scan_get_enable(struct wlan_objmgr_psoc *psoc); |
| 191 | |
| 192 | /** |
Yeshwanth Sriram Guntuka | f70a37b | 2018-01-18 16:08:25 +0530 | [diff] [blame] | 193 | * ucfg_scan_set_miracast() - Public API to disable/enable miracast flag |
| 194 | * @psoc: psoc pointer |
| 195 | * @enable: enable miracast if true disable is false |
| 196 | * |
| 197 | * Return: QDF_STATUS. |
| 198 | */ |
| 199 | QDF_STATUS ucfg_scan_set_miracast( |
| 200 | struct wlan_objmgr_psoc *psoc, bool enable); |
| 201 | |
| 202 | /** |
Om Prakash Tripathi | 339dc26 | 2018-02-08 15:23:20 +0530 | [diff] [blame^] | 203 | * ucfg_scan_set_disable_timeout() - Public API to disable/enable scan timeout |
| 204 | * @psoc: psoc on which scan timeout need to be disabled |
| 205 | * @disable: disable scan timeout if true else enable scan timeout |
| 206 | * |
| 207 | * Return: QDF_STATUS. |
| 208 | */ |
| 209 | QDF_STATUS |
| 210 | ucfg_scan_set_disable_timeout(struct wlan_objmgr_psoc *psoc, bool disable); |
| 211 | |
| 212 | /** |
| 213 | * ucfg_scan_get_disable_timeout() - Public API to get if scan timeout |
| 214 | * is enabled or disabled |
| 215 | * @psoc: psoc on which scan timeout status need to be checked |
| 216 | * |
| 217 | * Return: true if timeout is diaabled else false. |
| 218 | */ |
| 219 | bool ucfg_scan_get_disable_timeout(struct wlan_objmgr_psoc *psoc); |
| 220 | |
| 221 | /** |
Om Prakash Tripathi | 3e166ff | 2017-11-03 16:11:11 +0530 | [diff] [blame] | 222 | * ucfg_scan_set_wide_band_scan() - Public API to disable/enable wide band scan |
| 223 | * @pdev: psoc on which scans need to be disabled |
| 224 | * @enable: enable wide band scan if @enable is true, disable otherwise |
| 225 | * |
| 226 | * Return: QDF_STATUS. |
| 227 | */ |
| 228 | QDF_STATUS ucfg_scan_set_wide_band_scan( |
| 229 | struct wlan_objmgr_pdev *pdev, bool enable); |
| 230 | |
| 231 | /** |
| 232 | * ucfg_scan_get_wide_band_scan() - Public API to check if |
| 233 | * wide band scan is enabled or disabled |
| 234 | * @pdev: psoc on which scans status need to be checked |
| 235 | * |
| 236 | * Return: true if enabled else false. |
| 237 | */ |
| 238 | bool ucfg_scan_get_wide_band_scan(struct wlan_objmgr_pdev *pdev); |
| 239 | |
| 240 | /** |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 241 | * ucfg_scan_cancel() - Public API to stop a scan |
| 242 | * @req: stop scan request params |
| 243 | * |
| 244 | * The Public API to stop a scan. Post a msg to target_if queue |
| 245 | * |
| 246 | * Return: 0 for success or error code. |
| 247 | */ |
| 248 | QDF_STATUS |
| 249 | ucfg_scan_cancel(struct scan_cancel_request *req); |
| 250 | |
| 251 | /** |
Abhishek Singh | f95b9e4 | 2017-04-25 12:12:01 +0530 | [diff] [blame] | 252 | * ucfg_scan_cancel_sync() - Public API to stop a scan and wait |
| 253 | * till all scan are completed |
| 254 | * @req: stop scan request params |
| 255 | * |
| 256 | * The Public API to stop a scan and wait |
| 257 | * till all scan are completed |
| 258 | * |
| 259 | * Return: 0 for success or error code. |
| 260 | */ |
| 261 | QDF_STATUS |
| 262 | ucfg_scan_cancel_sync(struct scan_cancel_request *req); |
| 263 | |
| 264 | /** |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 265 | * ucfg_scan_get_result() - The Public API to get scan results |
| 266 | * @pdev: pdev info |
| 267 | * @filter: Filters |
| 268 | * |
| 269 | * This function fetches scan result |
| 270 | * |
| 271 | * Return: scan list pointer |
| 272 | */ |
| 273 | qdf_list_t *ucfg_scan_get_result(struct wlan_objmgr_pdev *pdev, |
| 274 | struct scan_filter *filter); |
| 275 | |
| 276 | /** |
| 277 | * ucfg_scan_purge_results() - purge the scan list |
| 278 | * @scan_list: scan list to be purged |
| 279 | * |
| 280 | * This function purge the temp scan list |
| 281 | * |
| 282 | * Return: QDF_STATUS |
| 283 | */ |
| 284 | QDF_STATUS ucfg_scan_purge_results(qdf_list_t *scan_list); |
| 285 | |
| 286 | /** |
| 287 | * ucfg_scan_flush_results() - The Public API to flush scan result |
| 288 | * @pdev: pdev object |
| 289 | * @filter: filter to flush the scan entries |
| 290 | * |
| 291 | * The Public API to flush scan result. |
| 292 | * |
| 293 | * Return: 0 for success or error code. |
| 294 | */ |
| 295 | QDF_STATUS ucfg_scan_flush_results(struct wlan_objmgr_pdev *pdev, |
| 296 | struct scan_filter *filter); |
| 297 | |
| 298 | /** |
| 299 | * ucfg_scan_filter_valid_channel() - The Public API to filter scan result |
| 300 | * based on valid channel list |
| 301 | * @pdev: pdev object |
| 302 | * @chan_list: valid channel list |
| 303 | * @num_chan: number of valid channels |
| 304 | * |
| 305 | * The Public API to to filter scan result |
| 306 | * based on valid channel list. |
| 307 | * |
| 308 | * Return: void. |
| 309 | */ |
| 310 | void ucfg_scan_filter_valid_channel(struct wlan_objmgr_pdev *pdev, |
| 311 | uint8_t *chan_list, uint32_t num_chan); |
| 312 | |
| 313 | /** |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 314 | * ucfg_scan_db_iterate() - function to iterate scan table |
| 315 | * @pdev: pdev object |
| 316 | * @func: iterator function pointer |
| 317 | * @arg: argument to be passed to func() |
| 318 | * |
| 319 | * API, this API iterates scan table and invokes func |
| 320 | * on each scan enetry by passing scan entry and arg. |
| 321 | * |
| 322 | * Return: QDF_STATUS |
| 323 | */ |
| 324 | QDF_STATUS |
| 325 | ucfg_scan_db_iterate(struct wlan_objmgr_pdev *pdev, |
| 326 | scan_iterator_func func, void *arg); |
| 327 | |
| 328 | /** |
| 329 | * ucfg_scan_update_mlme_info() - The Public API to update mlme |
| 330 | * info in the scan entry |
| 331 | * @vdev: vdev object |
| 332 | * @bss: bss info to find the matching scan entry |
| 333 | * @mlme_info: mlme info to be updated. |
| 334 | * |
| 335 | * The Public API to update mlme info in the scan entry. |
| 336 | * Post a msg to target_if queue |
| 337 | * |
| 338 | * Return: 0 for success or error code. |
| 339 | */ |
| 340 | QDF_STATUS |
| 341 | ucfg_scan_update_mlme_info(struct wlan_objmgr_vdev *vdev, struct bss_info *bss, |
| 342 | struct mlme_info *mlme_info); |
| 343 | |
| 344 | /** |
| 345 | * ucfg_scan_register_event_handler() - The Public API to register |
| 346 | * an event cb handler |
Om Prakash Tripathi | d088a8a | 2017-04-04 17:12:51 +0530 | [diff] [blame] | 347 | * @pdev: pdev object |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 348 | * @event_cb: callback function to register |
| 349 | * @arg: component specific priv argument to @event_cb callback function |
| 350 | * |
| 351 | * The Public API to register a event cb handler. This cb is called whenever |
Om Prakash Tripathi | d088a8a | 2017-04-04 17:12:51 +0530 | [diff] [blame] | 352 | * any scan event is received on @pdev. |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 353 | * |
| 354 | * Return: 0 for success or error code. |
| 355 | */ |
| 356 | |
| 357 | QDF_STATUS |
Om Prakash Tripathi | d088a8a | 2017-04-04 17:12:51 +0530 | [diff] [blame] | 358 | ucfg_scan_register_event_handler(struct wlan_objmgr_pdev *pdev, |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 359 | scan_event_handler event_cb, void *arg); |
| 360 | |
| 361 | /** |
| 362 | * ucfg_scan_unregister_event_handler() - Public API to unregister |
| 363 | * event cb handler |
Om Prakash Tripathi | d088a8a | 2017-04-04 17:12:51 +0530 | [diff] [blame] | 364 | * @pdev: pdev object |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 365 | * @event_cb: callback function to unregister |
| 366 | * @arg: component specific priv argument to @event_cb callback function |
| 367 | * |
| 368 | * Unregister a event cb handler. cb and arg will be used to |
| 369 | * find the calback. |
| 370 | * |
| 371 | * Return: void |
| 372 | */ |
| 373 | |
| 374 | void |
Om Prakash Tripathi | d088a8a | 2017-04-04 17:12:51 +0530 | [diff] [blame] | 375 | ucfg_scan_unregister_event_handler(struct wlan_objmgr_pdev *pdev, |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 376 | scan_event_handler event_cb, void *arg); |
| 377 | |
| 378 | /** |
| 379 | * ucfg_scan_init_default_params() - get the defaults scan params |
| 380 | * @vdev: vdev object |
| 381 | * @req: scan request object |
| 382 | * |
| 383 | * get the defaults scan params |
| 384 | * |
| 385 | * Return: QDF_STATUS_SUCCESS or error code |
| 386 | */ |
| 387 | QDF_STATUS |
| 388 | ucfg_scan_init_default_params(struct wlan_objmgr_vdev *vdev, |
| 389 | struct scan_start_request *req); |
| 390 | |
| 391 | /** |
| 392 | * ucfg_scan_init_ssid_params() - initialize scan request ssid list |
| 393 | * |
| 394 | * @scan_req: scan request object |
| 395 | * @num_ssid: number of ssid's in ssid list |
| 396 | * @ssid_list: ssid list |
| 397 | * |
| 398 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 399 | */ |
| 400 | QDF_STATUS |
| 401 | ucfg_scan_init_ssid_params(struct scan_start_request *scan_req, |
| 402 | uint32_t num_ssid, struct wlan_ssid *ssid_list); |
| 403 | |
| 404 | /** |
| 405 | * ucfg_scan_init_bssid_params() - initialize scan request bssid list |
| 406 | * @scan_req: scan request object |
| 407 | * @num_ssid: number of bssid's in bssid list |
| 408 | * @bssid_list: bssid list |
| 409 | * |
| 410 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 411 | */ |
| 412 | QDF_STATUS |
| 413 | ucfg_scan_init_bssid_params(struct scan_start_request *scan_req, |
| 414 | uint32_t num_ssid, struct qdf_mac_addr *bssid_list); |
| 415 | |
| 416 | /** |
| 417 | * ucfg_scan_init_chanlist_params() - initialize scan request channel list |
| 418 | * @scan_req: scan request object |
Om Prakash Tripathi | 3e166ff | 2017-11-03 16:11:11 +0530 | [diff] [blame] | 419 | * @num_chans: number of channels in channel list |
| 420 | * @chan_list: channel list |
| 421 | * @phymode: phymode in which scan shall be done |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 422 | * |
| 423 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 424 | */ |
| 425 | QDF_STATUS |
| 426 | ucfg_scan_init_chanlist_params(struct scan_start_request *scan_req, |
Om Prakash Tripathi | 3e166ff | 2017-11-03 16:11:11 +0530 | [diff] [blame] | 427 | uint32_t num_chans, uint32_t *chan_list, uint32_t *phymode); |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 428 | |
| 429 | /** |
| 430 | * ucfg_scan_get_vdev_status() - API to check vdev scan status |
| 431 | * @vdev: vdev object |
| 432 | * |
| 433 | * Return: enum scm_scan_status |
| 434 | */ |
| 435 | enum scm_scan_status |
| 436 | ucfg_scan_get_vdev_status(struct wlan_objmgr_vdev *vdev); |
| 437 | |
| 438 | /** |
| 439 | * ucfg_scan_get_pdev_status() - API to check pdev scan status |
| 440 | * @pdev: vdev object |
| 441 | * |
| 442 | * Return: enum scm_scan_status |
| 443 | */ |
| 444 | enum scm_scan_status |
| 445 | ucfg_scan_get_pdev_status(struct wlan_objmgr_pdev *pdev); |
| 446 | |
| 447 | /** |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 448 | * ucfg_scan_register_bcn_cb() - API to register api |
| 449 | * to inform/update bcn/probe as soon as they are received |
| 450 | * @pdev: psoc |
| 451 | * @cb: callback to be registered |
| 452 | * @type: Type of callback to be registered |
| 453 | * |
| 454 | * Return: enum scm_scan_status |
| 455 | */ |
| 456 | QDF_STATUS ucfg_scan_register_bcn_cb(struct wlan_objmgr_psoc *psoc, |
| 457 | update_beacon_cb cb, enum scan_cb_type type); |
| 458 | |
| 459 | /* |
Abhishek Singh | 2f13246 | 2017-03-06 16:48:59 +0530 | [diff] [blame] | 460 | * ucfg_scan_update_user_config() - Update scan cache user config |
| 461 | * @psoc: psoc |
| 462 | * @scan_cfg: scan user config |
| 463 | * |
| 464 | * Return: QDF_STATUS |
| 465 | */ |
| 466 | QDF_STATUS ucfg_scan_update_user_config(struct wlan_objmgr_psoc *psoc, |
| 467 | struct scan_user_cfg *scan_cfg); |
| 468 | |
Abhishek Singh | 6e7489e | 2017-03-23 10:54:22 +0530 | [diff] [blame] | 469 | /** |
| 470 | * ucfg_scan_update_roam_params() - Store/Update the roam params |
| 471 | * @psoc: psoc |
| 472 | * @roam_params: roam params |
| 473 | * |
| 474 | * Return: QDF_STATUS |
| 475 | */ |
| 476 | QDF_STATUS ucfg_scan_update_roam_params(struct wlan_objmgr_psoc *psoc, |
| 477 | struct roam_filter_params *roam_params); |
| 478 | |
Abhishek Singh | 2f13246 | 2017-03-06 16:48:59 +0530 | [diff] [blame] | 479 | /* |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 480 | * ucfg_scan_init() - Scan module initialization API |
| 481 | * |
| 482 | * Return: QDF_STATUS |
| 483 | */ |
| 484 | QDF_STATUS ucfg_scan_init(void); |
| 485 | |
| 486 | /** |
| 487 | * ucfg_scan_deinit() - Scan module deinitilization API |
| 488 | * |
| 489 | * Return: QDF_STATUS |
| 490 | */ |
| 491 | QDF_STATUS ucfg_scan_deinit(void); |
| 492 | |
| 493 | /** |
| 494 | * ucfg_scan_psoc_enable() - Scan module enable API |
| 495 | * @psoc: psoc object |
| 496 | * |
| 497 | * Return: QDF_STATUS |
| 498 | */ |
| 499 | QDF_STATUS ucfg_scan_psoc_enable(struct wlan_objmgr_psoc *psoc); |
| 500 | |
| 501 | /** |
| 502 | * ucfg_scan_psoc_enable() - Scan module disable API |
| 503 | * @psoc: psoc object |
| 504 | * |
| 505 | * Return: QDF_STATUS |
| 506 | */ |
| 507 | QDF_STATUS ucfg_scan_psoc_disable(struct wlan_objmgr_psoc *psoc); |
| 508 | |
| 509 | /** |
| 510 | * ucfg_scan_psoc_open() - Scan module psoc open API |
| 511 | * @psoc: psoc object |
| 512 | * |
| 513 | * Return: QDF_STATUS |
| 514 | */ |
| 515 | QDF_STATUS ucfg_scan_psoc_open(struct wlan_objmgr_psoc *psoc); |
| 516 | |
| 517 | /** |
| 518 | * ucfg_scan_psoc_close() - Scan module psoc close API |
| 519 | * @psoc: psoc object |
| 520 | * |
| 521 | * Return: QDF_STATUS |
| 522 | */ |
| 523 | QDF_STATUS ucfg_scan_psoc_close(struct wlan_objmgr_psoc *psoc); |
| 524 | |
Om Prakash Tripathi | 0078b78 | 2017-04-12 12:23:40 +0530 | [diff] [blame] | 525 | /** |
| 526 | * ucfg_scan_get_max_active_scans() - API to get max active scans |
| 527 | * supported on this psoc |
| 528 | * @psoc: psoc object |
| 529 | * |
| 530 | * Return: uint32_t |
| 531 | */ |
| 532 | uint32_t ucfg_scan_get_max_active_scans(struct wlan_objmgr_psoc *psoc); |
| 533 | |
Rajeev Kumar Sirasanagandla | a3f4a29 | 2017-06-21 12:01:22 +0530 | [diff] [blame] | 534 | /** |
| 535 | * ucfg_ie_whitelist_enabled() - Checks for IE whitelisting enable |
| 536 | * @psoc: pointer to psoc object |
| 537 | * @vdev: pointer to vdev |
| 538 | * |
| 539 | * This function is used to check whether IE whitelisting is enabled or not |
| 540 | * |
| 541 | * Return: If enabled returns true else returns false |
| 542 | */ |
| 543 | bool ucfg_ie_whitelist_enabled(struct wlan_objmgr_psoc *psoc, |
| 544 | struct wlan_objmgr_vdev *vdev); |
| 545 | |
| 546 | /** |
| 547 | * ucfg_copy_ie_whitelist_attrs() - Populate probe req IE whitelist attrs |
| 548 | * @psoc: pointer to psoc object |
| 549 | * @ie_whitelist: output parameter to hold ie whitelist attrs |
| 550 | * |
| 551 | * If IE whitelisting is enabled then invoke this function to copy |
| 552 | * IE whitelisting attrs from wlan scan object |
| 553 | * |
| 554 | * Return: true - successful copy |
| 555 | * false - copy failed |
| 556 | */ |
| 557 | bool ucfg_copy_ie_whitelist_attrs(struct wlan_objmgr_psoc *psoc, |
| 558 | struct probe_req_whitelist_attr *ie_whitelist); |
Yeshwanth Sriram Guntuka | b9e2f66 | 2017-12-14 17:56:04 +0530 | [diff] [blame] | 559 | |
| 560 | /** |
| 561 | * ucfg_scan_set_bt_activity() - API to set bt activity |
| 562 | * @psoc: pointer to psoc object |
| 563 | * @bt_a2dp_active: bt activiy value |
| 564 | * |
| 565 | * Return: None |
| 566 | */ |
| 567 | void ucfg_scan_set_bt_activity(struct wlan_objmgr_psoc *psoc, |
| 568 | bool bt_a2dp_active); |
| 569 | /** |
| 570 | * ucfg_scan_get_bt_activity() - API to get bt activity |
| 571 | * @psoc: pointer to psoc object |
| 572 | * |
| 573 | * Return: true if enabled else false. |
| 574 | */ |
| 575 | bool ucfg_scan_get_bt_activity(struct wlan_objmgr_psoc *psoc); |
Om Prakash Tripathi | 7e3f45d | 2016-12-28 16:58:54 +0530 | [diff] [blame] | 576 | #endif |