Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133828
b: refs/heads/master
c: 6095e08
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent 85e07f9 commit 806f46d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: ddbe9a686805c36a0e68451ebb8cb51b21d0c718
refs/heads/master: 6095e08126790592699d8aeef4d31b263a4176a4
12 changes: 8 additions & 4 deletions trunk/drivers/net/hamradio/mkiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,19 +667,23 @@ static const struct header_ops ax_header_ops = {
.rebuild = ax_rebuild_header,
};

static const struct net_device_ops ax_netdev_ops = {
.ndo_open = ax_open_dev,
.ndo_stop = ax_close,
.ndo_start_xmit = ax_xmit,
.ndo_set_mac_address = ax_set_mac_address,
};

static void ax_setup(struct net_device *dev)
{
/* Finish setting up the DEVICE info. */
dev->mtu = AX_MTU;
dev->hard_start_xmit = ax_xmit;
dev->open = ax_open_dev;
dev->stop = ax_close;
dev->set_mac_address = ax_set_mac_address;
dev->hard_header_len = 0;
dev->addr_len = 0;
dev->type = ARPHRD_AX25;
dev->tx_queue_len = 10;
dev->header_ops = &ax_header_ops;
dev->netdev_ops = &ax_netdev_ops;


memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN);
Expand Down

0 comments on commit 806f46d

Please sign in to comment.