File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ bool wifi_station_get_config (struct station_config *config)
84
84
config->bssid [i] = i;
85
85
config->threshold .rssi = 1 ;
86
86
config->threshold .authmode = AUTH_WPA_PSK;
87
+ #ifndef NONOSDK221
87
88
config->open_and_wep_mode_disable = true ;
89
+ #endif
88
90
return true ;
89
91
}
90
92
@@ -190,11 +192,15 @@ uint8 wifi_get_opmode_default (void)
190
192
return STATION_MODE;
191
193
}
192
194
195
+ #ifndef NONOSDK221
196
+
193
197
sleep_level_t wifi_get_sleep_level (void )
194
198
{
195
199
return MIN_SLEEP_T;
196
200
}
197
201
202
+ #endif // nonos-sdk-pre-3
203
+
198
204
sleep_type_t wifi_get_sleep_type (void )
199
205
{
200
206
return NONE_SLEEP_T;
@@ -242,12 +248,16 @@ bool wifi_set_phy_mode (phy_mode_t mode)
242
248
return true ;
243
249
}
244
250
251
+ #ifndef NONOSDK221
252
+
245
253
bool wifi_set_sleep_level (sleep_level_t level)
246
254
{
247
255
(void )level;
248
256
return true ;
249
257
}
250
258
259
+ #endif
260
+
251
261
bool wifi_set_sleep_type (sleep_type_t type)
252
262
{
253
263
(void )type;
You can’t perform that action at this time.
0 commit comments