File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
features/FEATURE_LWIP/lwip-interface Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,13 @@ err_t emac_lwip_if_init(struct netif *netif)
63
63
mac -> ops .set_link_input_cb (mac , emac_lwip_input , netif );
64
64
mac -> ops .set_link_state_cb (mac , emac_lwip_state_change , netif );
65
65
66
- netif -> hwaddr_len = mac -> ops .get_hwaddr_size (mac );
67
- mac -> ops .get_hwaddr (mac , netif -> hwaddr );
66
+ if (!mac -> ops .power_up (mac )) {
67
+ err = ERR_IF ;
68
+ }
68
69
69
70
netif -> mtu = mac -> ops .get_mtu_size (mac );
71
+ netif -> hwaddr_len = mac -> ops .get_hwaddr_size (mac );
72
+ mac -> ops .get_hwaddr (mac , netif -> hwaddr );
70
73
71
74
/* Interface capabilities */
72
75
netif -> flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_IGMP ;
@@ -79,10 +82,6 @@ err_t emac_lwip_if_init(struct netif *netif)
79
82
80
83
netif -> linkoutput = emac_lwip_low_level_output ;
81
84
82
- if (!mac -> ops .power_up (mac )) {
83
- err = ERR_IF ;
84
- }
85
-
86
85
return err ;
87
86
}
88
87
You can’t perform that action at this time.
0 commit comments