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:
parent
3d41ccf032
commit
f08346a73e
@ -84,7 +84,9 @@ bool wifi_station_get_config (struct station_config *config)
|
|||||||
config->bssid[i] = i;
|
config->bssid[i] = i;
|
||||||
config->threshold.rssi = 1;
|
config->threshold.rssi = 1;
|
||||||
config->threshold.authmode = AUTH_WPA_PSK;
|
config->threshold.authmode = AUTH_WPA_PSK;
|
||||||
|
#ifndef NONOSDK221
|
||||||
config->open_and_wep_mode_disable = true;
|
config->open_and_wep_mode_disable = true;
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,11 +192,15 @@ uint8 wifi_get_opmode_default (void)
|
|||||||
return STATION_MODE;
|
return STATION_MODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NONOSDK221
|
||||||
|
|
||||||
sleep_level_t wifi_get_sleep_level (void)
|
sleep_level_t wifi_get_sleep_level (void)
|
||||||
{
|
{
|
||||||
return MIN_SLEEP_T;
|
return MIN_SLEEP_T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // nonos-sdk-pre-3
|
||||||
|
|
||||||
sleep_type_t wifi_get_sleep_type (void)
|
sleep_type_t wifi_get_sleep_type (void)
|
||||||
{
|
{
|
||||||
return NONE_SLEEP_T;
|
return NONE_SLEEP_T;
|
||||||
@ -242,12 +248,16 @@ bool wifi_set_phy_mode (phy_mode_t mode)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NONOSDK221
|
||||||
|
|
||||||
bool wifi_set_sleep_level (sleep_level_t level)
|
bool wifi_set_sleep_level (sleep_level_t level)
|
||||||
{
|
{
|
||||||
(void)level;
|
(void)level;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
bool wifi_set_sleep_type (sleep_type_t type)
|
bool wifi_set_sleep_type (sleep_type_t type)
|
||||||
{
|
{
|
||||||
(void)type;
|
(void)type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user