mirror of https://github.com/ARMmbed/mbed-os.git
Set greentea wifi tests to set channel back to any after channel tests
parent
970a21fa9a
commit
06302cb10e
|
|
@ -36,6 +36,8 @@ void wifi_connect_params_channel(void)
|
|||
|
||||
nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security(), MBED_CONF_APP_WIFI_CH_SECURE);
|
||||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, error);
|
||||
|
||||
wifi->set_channel(0);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ void wifi_connect_params_channel_fail(void)
|
|||
|
||||
nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security(), MBED_CONF_APP_WIFI_CH_UNSECURE);
|
||||
TEST_ASSERT(error == NSAPI_ERROR_CONNECTION_TIMEOUT || error == NSAPI_ERROR_NO_CONNECTION);
|
||||
|
||||
wifi->set_channel(0);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)
|
||||
|
|
|
|||
Loading…
Reference in New Issue