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:
Alexander Senier 2017-10-26 11:09:07 +02:00 committed by Christian Helmuth
parent aa0f13fba5
commit 6d69f946a8
1 changed files with 0 additions and 1 deletions

View File

@ -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;