}
+static const struct net_device_ops device_netdev_ops = {
+ .ndo_open = device_open,
+ .ndo_stop = device_close,
+ .ndo_do_ioctl = device_ioctl,
+ .ndo_get_stats = device_get_stats,
+ .ndo_start_xmit = device_xmit,
+ .ndo_set_multicast_list = device_set_multi,
+};
+
+
#ifndef PRIVATE_OBJ
static int
pDevice->pMgmt = &(pDevice->sMgmtObj);
dev->irq = pcid->irq;
- dev->open = device_open;
- dev->hard_start_xmit = device_xmit;
- dev->stop = device_close;
- dev->get_stats = device_get_stats;
- dev->set_multicast_list = device_set_multi;
- dev->do_ioctl = device_ioctl;
+ dev->netdev_ops = &device_netdev_ops;
#ifdef WIRELESS_EXT
//Einsn Modify for ubuntu-7.04
apdev_priv = netdev_priv(pDevice->apdev);
*apdev_priv = *pDevice;
memcpy(pDevice->apdev->dev_addr, dev->dev_addr, ETH_ALEN);
- pDevice->apdev->hard_start_xmit = pDevice->tx_80211;
+
+ const struct net_device_ops apdev_netdev_ops = {
+ .ndo_start_xmit = pDevice->tx_80211,
+ };
+ pDevice->apdev->netdev_ops = &apdev_netdev_ops;
+
pDevice->apdev->type = ARPHRD_IEEE80211;
pDevice->apdev->base_addr = dev->base_addr;