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;
29
29
void test_emac_multicast_filter_cb (int opt)
30
30
{
31
31
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];
33
33
static bool send_request = true ;
34
34
static bool receive = true ;
35
35
static int no_response_cnt = 0 ;
@@ -71,7 +71,6 @@ void test_emac_multicast_filter_cb(int opt)
71
71
receive = true ;
72
72
break ;
73
73
74
-
75
74
case 3 :
76
75
printf (" STEP 3: set ipv4 multicast filter, test if input message is filtered\r\n\r\n " );
77
76
{
@@ -145,7 +144,15 @@ void test_emac_multicast_filter_cb(int opt)
145
144
146
145
if (next_step) {
147
146
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
148
154
test_step++;
155
+ #endif
149
156
retries = 0 ;
150
157
send_request = true ;
151
158
}
Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ Case cases[] = {
72
72
Case (" EMAC unicast frame length" , test_emac_unicast_frame_len),
73
73
Case (" EMAC unicast burst" , test_emac_unicast_burst),
74
74
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))
75
77
Case (" EMAC multicast filter" , test_emac_multicast_filter),
78
+ #endif // !(MBED_CONF_NETWORK_EMAC_NO_SUPPORT_FOR_MULTICAST_FILTER == 1)
76
79
Case (" EMAC memory" , test_emac_memory)
77
80
};
78
81
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