2021-09-29 01:07:59 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
2020-11-12 03:18:24 -05:00
|
|
|
*
|
2021-09-29 01:07:59 -04:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2020-11-12 03:18:24 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ESP_WNM_H
|
|
|
|
#define _ESP_WNM_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum btm_query_reason: Reason code for sending btm query
|
|
|
|
*/
|
|
|
|
enum btm_query_reason {
|
|
|
|
REASON_UNSPECIFIED = 0,
|
|
|
|
REASON_FRAME_LOSS = 1,
|
|
|
|
REASON_DELAY = 2,
|
2021-09-29 01:07:59 -04:00
|
|
|
REASON_BANDWIDTH = 3,
|
|
|
|
REASON_LOAD_BALANCE = 4,
|
|
|
|
REASON_RSSI = 5,
|
|
|
|
REASON_RETRANSMISSIONS = 6,
|
|
|
|
REASON_INTERFERENCE = 7,
|
|
|
|
REASON_GRAY_ZONE = 8,
|
|
|
|
REASON_PREMIUM_AP = 9,
|
2020-11-12 03:18:24 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Send bss transition query to connected AP
|
|
|
|
*
|
|
|
|
* @param query_reason: reason for sending query
|
|
|
|
* @param btm_candidates: btm candidates list if available
|
|
|
|
* @param cand_list: whether candidate list to be included from scan results available in supplicant's cache.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* - 0: success else failure
|
|
|
|
*/
|
|
|
|
int esp_wnm_send_bss_transition_mgmt_query(enum btm_query_reason query_reason,
|
|
|
|
const char *btm_candidates,
|
|
|
|
int cand_list);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|