aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/ether.c
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2006-01-22 13:33:27 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 17:49:56 -0500
commit7802ac5c29d135345db1b06f9167075cd9f2d675 (patch)
treeeac03ea017b9bd42581f699fa4b71fad692a6bea /drivers/usb/gadget/ether.c
parentbae4bd848dc0b7e6defc7a5d62834a35d1eed06d (diff)
[PATCH] USB: minor gadget/rndis tweak
Resove a minor FIXME: don't change MTU while RNDIS link is active, the other end won't expect such things... Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/ether.c')
-rw-r--r--drivers/usb/gadget/ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index afc84cfb61f..04b9743c1c1 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -1549,7 +1549,8 @@ static int eth_change_mtu (struct net_device *net, int new_mtu)
1549{ 1549{
1550 struct eth_dev *dev = netdev_priv(net); 1550 struct eth_dev *dev = netdev_priv(net);
1551 1551
1552 // FIXME if rndis, don't change while link's live 1552 if (dev->rndis)
1553 return -EBUSY;
1553 1554
1554 if (new_mtu <= ETH_HLEN || new_mtu > ETH_FRAME_LEN) 1555 if (new_mtu <= ETH_HLEN || new_mtu > ETH_FRAME_LEN)
1555 return -ERANGE; 1556 return -ERANGE;