Skip to content

Commit f08346a

Browse files
authored
Fix host emulation (sdk changes) (#5802)
1 parent 3d41ccf commit f08346a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/host/common/user_interface.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ bool wifi_station_get_config (struct station_config *config)
8484
config->bssid[i] = i;
8585
config->threshold.rssi = 1;
8686
config->threshold.authmode = AUTH_WPA_PSK;
87+
#ifndef NONOSDK221
8788
config->open_and_wep_mode_disable = true;
89+
#endif
8890
return true;
8991
}
9092

@@ -190,11 +192,15 @@ uint8 wifi_get_opmode_default (void)
190192
return STATION_MODE;
191193
}
192194

195+
#ifndef NONOSDK221
196+
193197
sleep_level_t wifi_get_sleep_level (void)
194198
{
195199
return MIN_SLEEP_T;
196200
}
197201

202+
#endif // nonos-sdk-pre-3
203+
198204
sleep_type_t wifi_get_sleep_type (void)
199205
{
200206
return NONE_SLEEP_T;
@@ -242,12 +248,16 @@ bool wifi_set_phy_mode (phy_mode_t mode)
242248
return true;
243249
}
244250

251+
#ifndef NONOSDK221
252+
245253
bool wifi_set_sleep_level (sleep_level_t level)
246254
{
247255
(void)level;
248256
return true;
249257
}
250258

259+
#endif
260+
251261
bool wifi_set_sleep_type (sleep_type_t type)
252262
{
253263
(void)type;

0 commit comments

Comments
 (0)