1 /**
2  * Copyright 2020 Espressif Systems (Shanghai) PTE LTD
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _ESP_RRM_H
18 #define _ESP_RRM_H
19 
20 #include <stdbool.h>
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /**
26   * @brief  Callback function type to get neighbor report
27   *
28   * @param  ctx: neighbor report context
29   * @param  report: neighbor report
30   * @param  report_len: neighbor report length
31   *
32   * @return
33   *    - void
34   */
35 typedef void (*neighbor_rep_request_cb)(void *ctx, const uint8_t *report, size_t report_len);
36 
37 /**
38   * @brief  Send Radio measurement neighbor report request to connected AP
39   *
40   * @param  cb: callback function for neighbor report
41   * @param  cb_ctx: callback context
42   *
43   * @return
44   *    - 0: success else failure
45   */
46 int esp_rrm_send_neighbor_rep_request(neighbor_rep_request_cb cb,
47 				      void *cb_ctx);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 #endif
53