File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ using namespace utest::v1;
2929void test_emac_multicast_filter_cb (int opt)
3030{
3131 static bool multicasts_are_filtered = true ;
32- unsigned char forward_addr[ETH_MAC_ADDR_LEN];
32+ static unsigned char forward_addr[ETH_MAC_ADDR_LEN];
3333 static bool send_request = true ;
3434 static bool receive = true ;
3535 static int no_response_cnt = 0 ;
@@ -71,7 +71,6 @@ void test_emac_multicast_filter_cb(int opt)
7171 receive = true ;
7272 break ;
7373
74-
7574 case 3 :
7675 printf (" STEP 3: set ipv4 multicast filter, test if input message is filtered\r\n\r\n " );
7776 {
@@ -145,7 +144,15 @@ void test_emac_multicast_filter_cb(int opt)
145144
146145 if (next_step) {
147146 RESET_OUTGOING_MSG_DATA;
147+ #if (MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER == 1)
148+ if (test_step == 2 ) {
149+ test_step = 5 ;
150+ } else {
151+ test_step++;
152+ }
153+ #else
148154 test_step++;
155+ #endif
149156 retries = 0 ;
150157 send_request = true ;
151158 }
Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ Case cases[] = {
7272 Case (" EMAC unicast frame length" , test_emac_unicast_frame_len),
7373 Case (" EMAC unicast burst" , test_emac_unicast_burst),
7474 Case (" EMAC unicast long" , test_emac_unicast_long),
75+ #if !((MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_MULTICAST_FILTER == 1) && \
76+ (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI))
7577 Case (" EMAC multicast filter" , test_emac_multicast_filter),
78+ #endif // !(MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_MULTICAST_FILTER == 1)
7679 Case (" EMAC memory" , test_emac_memory)
7780};
7881
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " network-emac" ,
3+ "config" : {
4+ "NO_SUPPORT_FOR_MULTICAST_FILTER" : false ,
5+ "NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER" : false
6+ },
7+ "target_overrides" : {
8+ "MTB_UBLOX_ODIN_W2" : {
9+ "NO_SUPPORT_FOR_MULTICAST_FILTER" : true
10+ },
11+ "UBLOX_EVK_ODIN_W2" : {
12+ "NO_SUPPORT_FOR_MULTICAST_FILTER" : true
13+ },
14+ "MTB_MXCHIP_EMW3166" : {
15+ "NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER" : true
16+ },
17+ "MTB_ADV_WISE_1530" : {
18+ "NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER" : true
19+ },
20+ "MTB_USI_WM_BN_BM_22" : {
21+ "NO_SUPPORT_FOR_IPV4_MULTICAST_FILTER" : true
22+ }
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments