Subject: [PATCH 3/8] wireless: convert wireless ioctl to net_device_ops

From: Stephen Hemminger <[email-masked]>
Date: Mon, 05 Jan 2009 12:14:45 -0800

Signed-off-by: Stephen Hemminger <[email-masked]>

--- a/net/wireless/wext.c	2009-01-05 08:40:34.045826527 -0800
+++ b/net/wireless/wext.c	2009-01-05 09:33:27.362505126 -0800
@@ -1055,8 +1055,8 @@ static int wireless_process_ioctl(struct
 			return private(dev, iwr, cmd, info, handler);
 	}
 	/* Old driver API : call driver ioctl handler */
-	if (dev->do_ioctl)
-		return dev->do_ioctl(dev, ifr, cmd);
+	if (dev->netdev_ops->ndo_do_ioctl)
+		return dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd);
 	return -EOPNOTSUPP;
 }

--