usb: netusb: Add ethernet_init()

After PR #8608 every driver should call ethernet_init(), fixes missing
chunks of that PR.

Fixes: #8752

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2018-07-05 15:17:04 +03:00 committed by Anas Nashif
parent e09af5f008
commit 7cb8689397
1 changed files with 2 additions and 0 deletions

View File

@ -579,6 +579,8 @@ static void netusb_init(struct net_if *iface)
netusb.iface = iface;
ethernet_init(iface);
net_if_set_link_addr(iface, mac, sizeof(mac), NET_LINK_ETHERNET);
net_if_down(iface);