mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
dde_linux/usb: Do not unset carrier flag in register_netdev
Linux does not do that in register_netdev() either. Some drivers set the carrier flags on attach and never reenable it (as seen with rndis_host). Consequently, the usbnet driver refuses to receive data as it checks the carrier state before enqueuing new SKBs to its receive queue. Apart from rndis_host, this change was tested with an ax88179_178a device which worked as expected.
This commit is contained in:
parent
aa0f13fba5
commit
6d69f946a8
@ -327,7 +327,6 @@ int register_netdev(struct net_device *ndev)
|
||||
announce = true;
|
||||
|
||||
ndev->state |= 1 << __LINK_STATE_START;
|
||||
netif_carrier_off(ndev);
|
||||
|
||||
if ((err = ndev->netdev_ops->ndo_open(ndev)))
|
||||
return err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user