Skip to content

Fix host emulation (sdk changes) #5802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/host/common/user_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down