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
Greentea wifi test cases - disconnect done as teardown after each connect #5743
Changes from 3 commits
8c421e2
f71756c
ca95e3f
402ab81
c993057
5585ba6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,12 +54,16 @@ void wifi_scan(void) | |
if (strcmp(MBED_CONF_APP_WIFI_SECURE_SSID, ssid) == 0) { | ||
secure_found = true; | ||
TEST_ASSERT_EQUAL_INT(NSAPI_SECURITY_WPA2, security); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be changed also to WPA/WPA2? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it should and I'll change it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security to check against should be defined in the .json which also defines the wlan ap to connect to. |
||
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_SECURE, ch); | ||
if (MBED_CONF_APP_WIFI_CH_SECURE) { | ||
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_SECURE, ch); | ||
} | ||
} | ||
if (strcmp(MBED_CONF_APP_WIFI_UNSECURE_SSID, ssid) == 0) { | ||
unsecure_found = true; | ||
TEST_ASSERT_EQUAL_INT(NSAPI_SECURITY_NONE, security); | ||
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_UNSECURE, ch); | ||
if (MBED_CONF_APP_WIFI_CH_UNSECURE) { | ||
TEST_ASSERT_EQUAL_INT(MBED_CONF_APP_WIFI_CH_UNSECURE, ch); | ||
} | ||
} | ||
} | ||
TEST_ASSERT_TRUE(secure_found); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also accept the
NSAPI_ERROR_PARAMETER
I'm not sure that all drivers currently return this NO_SSID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add it.