Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135440
b: refs/heads/master
c: 2bd9f54
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 168e842 commit dc9ed52
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 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: 22bc1ce4f171f53c27052e1d74d312345487db16
refs/heads/master: 2bd9f54d46e28fdaa15240af6a97c953720ea5c1
19 changes: 13 additions & 6 deletions trunk/drivers/net/wireless/zd1201.c
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,18 @@ static const struct iw_handler_def zd1201_iw_handlers = {
.get_wireless_stats = zd1201_get_wireless_stats,
};

static const struct net_device_ops zd1201_netdev_ops = {
.ndo_open = zd1201_net_open,
.ndo_stop = zd1201_net_stop,
.ndo_start_xmit = zd1201_hard_start_xmit,
.ndo_tx_timeout = zd1201_tx_timeout,
.ndo_set_multicast_list = zd1201_set_multicast,
.ndo_set_mac_address = zd1201_set_mac_address,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

static int zd1201_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{
Expand Down Expand Up @@ -1769,14 +1781,9 @@ static int zd1201_probe(struct usb_interface *interface,
if (err)
goto err_start;

dev->open = zd1201_net_open;
dev->stop = zd1201_net_stop;
dev->netdev_ops = &zd1201_netdev_ops;
dev->wireless_handlers = &zd1201_iw_handlers;
dev->hard_start_xmit = zd1201_hard_start_xmit;
dev->watchdog_timeo = ZD1201_TX_TIMEOUT;
dev->tx_timeout = zd1201_tx_timeout;
dev->set_multicast_list = zd1201_set_multicast;
dev->set_mac_address = zd1201_set_mac_address;
strcpy(dev->name, "wlan%d");

err = zd1201_getconfig(zd, ZD1201_RID_CNFOWNMACADDR,
Expand Down

0 comments on commit dc9ed52

Please sign in to comment.