aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/netwave_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/netwave_cs.c')
-rw-r--r--drivers/net/wireless/netwave_cs.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c
index 9e7e37f5cdcb..d63c8992f229 100644
--- a/drivers/net/wireless/netwave_cs.c
+++ b/drivers/net/wireless/netwave_cs.c
@@ -355,6 +355,17 @@ static struct iw_statistics *netwave_get_wireless_stats(struct net_device *dev)
355 return &priv->iw_stats; 355 return &priv->iw_stats;
356} 356}
357 357
358static const struct net_device_ops netwave_netdev_ops = {
359 .ndo_open = netwave_open,
360 .ndo_stop = netwave_close,
361 .ndo_start_xmit = netwave_start_xmit,
362 .ndo_set_multicast_list = set_multicast_list,
363 .ndo_tx_timeout = netwave_watchdog,
364 .ndo_change_mtu = eth_change_mtu,
365 .ndo_set_mac_address = eth_mac_addr,
366 .ndo_validate_addr = eth_validate_addr,
367};
368
358/* 369/*
359 * Function netwave_attach (void) 370 * Function netwave_attach (void)
360 * 371 *
@@ -403,16 +414,12 @@ static int netwave_probe(struct pcmcia_device *link)
403 spin_lock_init(&priv->spinlock); 414 spin_lock_init(&priv->spinlock);
404 415
405 /* Netwave specific entries in the device structure */ 416 /* Netwave specific entries in the device structure */
406 dev->hard_start_xmit = &netwave_start_xmit; 417 dev->netdev_ops = &netwave_netdev_ops;
407 dev->set_multicast_list = &set_multicast_list;
408 /* wireless extensions */ 418 /* wireless extensions */
409 dev->wireless_handlers = (struct iw_handler_def *)&netwave_handler_def; 419 dev->wireless_handlers = &netwave_handler_def;
410 420
411 dev->tx_timeout = &netwave_watchdog;
412 dev->watchdog_timeo = TX_TIMEOUT; 421 dev->watchdog_timeo = TX_TIMEOUT;
413 422
414 dev->open = &netwave_open;
415 dev->stop = &netwave_close;
416 link->irq.Instance = dev; 423 link->irq.Instance = dev;
417 424
418 return netwave_pcmcia_config( link); 425 return netwave_pcmcia_config( link);