rv = wifi_is_activated(&state);
- if(state != true) {
+ if (state != true) {
rv = wifi_activate(__test_activated_callback, NULL);
if (rv != WIFI_ERROR_NONE) {
printf("Fail to activate Wi-Fi device [%s]", __test_convert_error_to_string(rv));
return -1;
}
- }
- else {
+ } else {
__test_activated_callback(WIFI_ERROR_NONE, NULL);
}
rv = wifi_is_activated(&state);
- if(state == true) {
+ if (state == true) {
rv = wifi_deactivate(__test_deactivated_callback, NULL);
if (rv != WIFI_ERROR_NONE) {
printf("Fail to deactivate Wi-Fi device [%s]\n", __test_convert_error_to_string(rv));
return -1;
}
- }
- else {
+ } else {
__test_deactivated_callback(WIFI_ERROR_NONE, NULL);
}