Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135436
b: refs/heads/master
c: 32f5a33
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 4f9b3fa commit cc9f4b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 824f1dfdbef72578272e9303dd9515399da57f28
refs/heads/master: 32f5a330090fdf7d4d663ff5bd979e186fe6aab6
21 changes: 14 additions & 7 deletions trunk/drivers/net/wireless/ray_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,19 @@ static char hop_pattern_length[] = { 1,
static char rcsid[] =
"Raylink/WebGear wireless LAN - Corey <Thomas corey@world.std.com>";

static const struct net_device_ops ray_netdev_ops = {
.ndo_init = ray_dev_init,
.ndo_open = ray_open,
.ndo_stop = ray_dev_close,
.ndo_start_xmit = ray_dev_start_xmit,
.ndo_set_config = ray_dev_config,
.ndo_get_stats = ray_get_stats,
.ndo_set_multicast_list = set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

/*=============================================================================
ray_attach() creates an "instance" of the driver, allocating
local data structures for one device. The device is registered
Expand Down Expand Up @@ -347,22 +360,16 @@ static int ray_probe(struct pcmcia_device *p_dev)
p_dev, dev, local, &ray_interrupt);

/* Raylink entries in the device structure */
dev->hard_start_xmit = &ray_dev_start_xmit;
dev->set_config = &ray_dev_config;
dev->get_stats = &ray_get_stats;
dev->netdev_ops = &ray_netdev_ops;
SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops);
dev->wireless_handlers = &ray_handler_def;
#ifdef WIRELESS_SPY
local->wireless_data.spy_data = &local->spy_data;
dev->wireless_data = &local->wireless_data;
#endif /* WIRELESS_SPY */

dev->set_multicast_list = &set_multicast_list;

DEBUG(2, "ray_cs ray_attach calling ether_setup.)\n");
dev->init = &ray_dev_init;
dev->open = &ray_open;
dev->stop = &ray_dev_close;
netif_stop_queue(dev);

init_timer(&local->timer);
Expand Down

0 comments on commit cc9f4b1

Please sign in to comment.