1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Fix host emulation (sdk changes) (#5802)

This commit is contained in:
david gauchard 2019-02-21 17:04:17 +01:00 committed by GitHub
parent 3d41ccf032
commit f08346a73e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,9 @@ bool wifi_station_get_config (struct station_config *config)
config->bssid[i] = i;
config->threshold.rssi = 1;
config->threshold.authmode = AUTH_WPA_PSK;
#ifndef NONOSDK221
config->open_and_wep_mode_disable = true;
#endif
return true;
}
@ -190,11 +192,15 @@ uint8 wifi_get_opmode_default (void)
return STATION_MODE;
}
#ifndef NONOSDK221
sleep_level_t wifi_get_sleep_level (void)
{
return MIN_SLEEP_T;
}
#endif // nonos-sdk-pre-3
sleep_type_t wifi_get_sleep_type (void)
{
return NONE_SLEEP_T;
@ -242,12 +248,16 @@ bool wifi_set_phy_mode (phy_mode_t mode)
return true;
}
#ifndef NONOSDK221
bool wifi_set_sleep_level (sleep_level_t level)
{
(void)level;
return true;
}
#endif
bool wifi_set_sleep_type (sleep_type_t type)
{
(void)type;