Skip to content

Fix for UBLOX_EVK_ODIN_W2 fails in emac test. #11547

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

Merged
merged 1 commit into from
Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions TESTS/network/emac/emac_test_multicast_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using namespace utest::v1;
void test_emac_multicast_filter_cb(int opt)
{
static bool multicasts_are_filtered = true;
unsigned char forward_addr[ETH_MAC_ADDR_LEN];
static unsigned char forward_addr[ETH_MAC_ADDR_LEN];
static bool send_request = true;
static bool receive = true;
static int no_response_cnt = 0;
Expand Down Expand Up @@ -71,7 +71,6 @@ void test_emac_multicast_filter_cb(int opt)
receive = true;
break;


case 3:
printf("STEP 3: set ipv4 multicast filter, test if input message is filtered\r\n\r\n");
{
Expand Down Expand Up @@ -145,7 +144,15 @@ void test_emac_multicast_filter_cb(int opt)

if (next_step) {
RESET_OUTGOING_MSG_DATA;
#if (MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER == 1)
if (test_step == 2) {
test_step = 5;
} else {
test_step++;
}
#else
test_step++;
#endif
retries = 0;
send_request = true;
}
Expand Down
3 changes: 3 additions & 0 deletions TESTS/network/emac/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ Case cases[] = {
Case("EMAC unicast frame length", test_emac_unicast_frame_len),
Case("EMAC unicast burst", test_emac_unicast_burst),
Case("EMAC unicast long", test_emac_unicast_long),
#if !((MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_MULTICAST_FILTER == 1) && \
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI))
Case("EMAC multicast filter", test_emac_multicast_filter),
#endif // !(MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_MULTICAST_FILTER == 1)
Case("EMAC memory", test_emac_memory)
};

Expand Down
24 changes: 24 additions & 0 deletions TESTS/network/emac/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "network-emac",
"config": {
"NO_SUPPORT_FOR_MULTICAST_FILTER": false,
"NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER": false
},
"target_overrides": {
"MTB_UBLOX_ODIN_W2": {
"NO_SUPPORT_FOR_MULTICAST_FILTER": true
},
"UBLOX_EVK_ODIN_W2": {
"NO_SUPPORT_FOR_MULTICAST_FILTER": true
},
"MTB_MXCHIP_EMW3166": {
"NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER": true
},
"MTB_ADV_WISE_1530": {
"NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER": true
},
"MTB_USI_WM_BN_BM_22": {
"NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER": true
}
}
}