File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
features/FEATURE_LWIP/lwip-interface Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ err_t LWIP::Interface::emac_if_init(struct netif *netif)
143
143
mbed_if->emac ->set_link_input_cb (mbed::callback (mbed_if, &LWIP::Interface::emac_input));
144
144
mbed_if->emac ->set_link_state_cb (mbed::callback (mbed_if, &LWIP::Interface::emac_state_change));
145
145
146
+ /* Interface capabilities */
147
+ netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET;
148
+
146
149
if (!mbed_if->emac ->power_up ()) {
147
150
err = ERR_IF;
148
151
}
@@ -154,8 +157,6 @@ err_t LWIP::Interface::emac_if_init(struct netif *netif)
154
157
mbed_if->emac ->get_hwaddr (netif->hwaddr );
155
158
/* Then we write back either what they gave us, or our default */
156
159
mbed_if->emac ->set_hwaddr (netif->hwaddr );
157
- /* Interface capabilities */
158
- netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET;
159
160
160
161
mbed_if->emac ->get_ifname (netif->name , 2 );
161
162
You can’t perform that action at this time.
0 commit comments