One-liner resolves a FIXME.

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 <[EMAIL PROTECTED]>

Index: g26/drivers/usb/gadget/ether.c
===================================================================
--- g26.orig/drivers/usb/gadget/ether.c	2005-11-12 10:11:57.000000000 -0800
+++ g26/drivers/usb/gadget/ether.c	2006-01-21 20:36:12.000000000 -0800
@@ -1549,7 +1549,8 @@ static int eth_change_mtu (struct net_de
 {
 	struct eth_dev	*dev = netdev_priv(net);
 
-	// FIXME if rndis, don't change while link's live
+	if (dev->rndis)
+		return -EBUSY;
 
 	if (new_mtu <= ETH_HLEN || new_mtu > ETH_FRAME_LEN)
 		return -ERANGE;

Reply via email to