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)
307307static  void  eth_iface_init (struct  net_if  * iface )
308308{
309309	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 ;
311311#if  !defined(CONFIG_ETH_NATIVE_TAP_RANDOM_MAC )
312312	const  char  * mac_addr  = 
313313		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)
355355	}
356356#endif 
357357
358+ 	ll_addr  =  eth_get_mac (ctx );
359+ 
358360	/* If we have only one network interface, then use the name 
359361	 * defined in the Kconfig directly. This way there is no need to 
360362	 * change the documentation etc. and break things. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments