mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
27101f9454
This commit adds different features from 802.11k and 802.11v specifications to make the device ready for network assisted roaming. It also adds initial framework for device to detect whether it needs to move to a better AP. Followings are added as part of this. 1. Support for sending neighbor report request and provide the report back to the APP. 2. Support for beacon measurement report. 3. Support for link measurement report. 4. Support for sending bss transition management query frame (triggered by the APP). 5. Support for bss transition management request and move to the candidate based on that. 6. Sending the bss transition management response.
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
|
|
#ifndef RRM_H
|
|
#define RRM_H
|
|
|
|
#include "common/defs.h"
|
|
#include "utils/list.h"
|
|
#include "esp_wifi_types.h"
|
|
#define RRM_NEIGHBOR_REPORT_TIMEOUT 1 /* 1 second for AP to send a report */
|
|
|
|
void wpas_rrm_reset(struct wpa_supplicant *wpa_s);
|
|
void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s,
|
|
const u8 *report, size_t report_len);
|
|
int wpas_rrm_send_neighbor_rep_request(struct wpa_supplicant *wpa_s,
|
|
const struct wpa_ssid_value *ssid,
|
|
int lci, int civic,
|
|
void (*cb)(void *ctx,
|
|
const u8 *neighbor_rep, size_t len),
|
|
void *cb_ctx);
|
|
void wpas_rrm_handle_radio_measurement_request(struct wpa_supplicant *wpa_s,
|
|
const u8 *src, const u8 *dst,
|
|
const u8 *frame, size_t len);
|
|
void wpas_rrm_handle_link_measurement_request(struct wpa_supplicant *wpa_s,
|
|
const u8 *src,
|
|
const u8 *frame, size_t len,
|
|
int rssi);
|
|
int wpas_beacon_rep_scan_process(struct wpa_supplicant *wpa_s,
|
|
u64 scan_start_tsf);
|
|
void wpas_clear_beacon_rep_data(struct wpa_supplicant *wpa_s);
|
|
|
|
#endif
|