WIFI_SECOND_CHAN_NONE=0,/**< the channel width is HT20 */
WIFI_SECOND_CHAN_ABOVE,/**< the channel width is HT40 and the second channel is above the primary channel */
WIFI_SECOND_CHAN_BELOW,/**< the channel width is HT40 and the second channel is below the primary channel */
}wifi_second_chan_t;
typedefstruct{
char*ssid;/**< SSID of AP */
uint8_t*bssid;/**< MAC address of AP */
uint8_tchannel;/**< channel, scan the specific channel */
boolshow_hidden;/**< enable to scan AP whose SSID is hidden */
}wifi_scan_config_t;
typedefstruct{
uint8_tbssid[6];/**< MAC address of AP */
uint8_tssid[32];/**< SSID of AP */
uint8_tprimary;/**< channel of AP */
wifi_second_chan_tsecond;/**< second channel of AP */
int8_trssi;/**< signal strength of AP */
wifi_auth_mode_tauthmode;/**< authmode of AP */
}wifi_ap_list_t;
typedefenum{
WIFI_PS_NONE,/**< No power save */
WIFI_PS_MODEM,/**< Modem power save */
WIFI_PS_LIGHT,/**< Light power save */
WIFI_PS_MAC,/**< MAC power save */
}wifi_ps_type_t;
#define WIFI_PROTOCOL_11B 1
#define WIFI_PROTOCOL_11G 2
#define WIFI_PROTOCOL_11N 4
typedefenum{
WIFI_BW_HT20=0,/* Bandwidth is HT20 */
WIFI_BW_HT40,/* Bandwidth is HT40 */
}wifi_bandwidth_t;
typedefstruct{
charssid[32];/**< SSID of ESP32 soft-AP */
charpassword[64];/**< Password of ESP32 soft-AP */
uint8_tssid_len;/**< Length of SSID. If softap_config.ssid_len==0, check the SSID until there is a termination character; otherwise, set the SSID length according to softap_config.ssid_len. */
uint8_tchannel;/**< Channel of ESP32 soft-AP */
wifi_auth_mode_tauthmode;/**< Auth mode of ESP32 soft-AP. Do not support AUTH_WEP in soft-AP mode */
uint8_tssid_hidden;/**< Broadcast SSID or not, default 0, broadcast the SSID */
uint8_tmax_connection;/**< Max number of stations allowed to connect in, default 4, max 4 */
boolbssid_set;/**< whether set MAC address of target AP or not. Generally, station_config.bssid_set needs to be 0; and it needs to be 1 only when users need to check the MAC address of the AP.*/