From: Stephen Hemminger Date: Tue, 6 Jan 2009 18:42:24 +0000 (-0800) Subject: wireless: convert wireless ioctl to net_device_ops X-Git-Tag: v2.6.29-rc1~45^2~81 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=148bc4303f9ba972cbfe5d30dfec93ec0d8ff1e1;p=linux-2.6-omap-h63xx.git wireless: convert wireless ioctl to net_device_ops Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/wireless/wext.c b/net/wireless/wext.c index e49a2d1ef1e..cb6a5bb85d8 100644 --- a/net/wireless/wext.c +++ b/net/wireless/wext.c @@ -1055,8 +1055,8 @@ static int wireless_process_ioctl(struct net *net, struct ifreq *ifr, 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; }