File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ static void create_rx_handler(struct eth_context *ctx)
307
307
static void eth_iface_init (struct net_if * iface )
308
308
{
309
309
struct eth_context * ctx = net_if_get_device (iface )-> data ;
310
- struct net_linkaddr * ll_addr = eth_get_mac ( ctx ) ;
310
+ struct net_linkaddr * ll_addr ;
311
311
#if !defined(CONFIG_ETH_NATIVE_TAP_RANDOM_MAC )
312
312
const char * mac_addr =
313
313
mac_addr_cmd_opt ? mac_addr_cmd_opt : CONFIG_ETH_NATIVE_TAP_MAC_ADDR ;
@@ -355,6 +355,8 @@ static void eth_iface_init(struct net_if *iface)
355
355
}
356
356
#endif
357
357
358
+ ll_addr = eth_get_mac (ctx );
359
+
358
360
/* If we have only one network interface, then use the name
359
361
* defined in the Kconfig directly. This way there is no need to
360
362
* change the documentation etc. and break things.
You can’t perform that action at this time.
0 commit comments