Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133817
b: refs/heads/master
c: 9772a25
h: refs/heads/master
i:
  133815: 1fb1ad0
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent 5038c3f commit 5d58d62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: cd94f08658e15972d6ca8b53501efa48841f1b5b
refs/heads/master: 9772a252b5b2ffbcf163cc07a443a444bf500040
14 changes: 9 additions & 5 deletions trunk/drivers/net/hamradio/baycom_epp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,14 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)

/* --------------------------------------------------------------------- */

static const struct net_device_ops baycom_netdev_ops = {
.ndo_open = epp_open,
.ndo_stop = epp_close,
.ndo_do_ioctl = baycom_ioctl,
.ndo_start_xmit = baycom_send_packet,
.ndo_set_mac_address = baycom_set_mac_address,
};

/*
* Check for a network adaptor of this type, and return '0' if one exists.
* If dev->base_addr == 0, probe all likely locations.
Expand Down Expand Up @@ -1129,16 +1137,12 @@ static void baycom_probe(struct net_device *dev)
/*
* initialize the device struct
*/
dev->open = epp_open;
dev->stop = epp_close;
dev->do_ioctl = baycom_ioctl;
dev->hard_start_xmit = baycom_send_packet;

/* Fill in the fields of the device structure */
bc->skb = NULL;

dev->netdev_ops = &baycom_netdev_ops;
dev->header_ops = &ax25_header_ops;
dev->set_mac_address = baycom_set_mac_address;

dev->type = ARPHRD_AX25; /* AF_AX25 device */
dev->hard_header_len = AX25_MAX_HEADER_LEN + AX25_BPQ_HEADER_LEN;
Expand Down

0 comments on commit 5d58d62

Please sign in to comment.