diff options
author | Samuel Ortiz <samuel.ortiz@nokia.com> | 2006-02-10 00:58:46 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-02-10 00:58:46 (GMT) |
commit | d93077fb0e7cb9d4f4094a649501d840c55fdc8b (patch) | |
tree | 4786704b28bdddd2696e2791ea1dc641bf134cb3 /net | |
parent | 28633514afd68afa77ed2fa34fa53626837bf2d5 (diff) | |
download | linux-fsl-qoriq-d93077fb0e7cb9d4f4094a649501d840c55fdc8b.tar.xz |
[IRDA]: Set proper IrLAP device address length
This patch set IrDA's addr_len properly, i.e to 4 bytes, the size of the
IrLAP device address.
Signed-off-by: Samuel Ortiz <samuel.ortiz@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/irda/irda_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/irda/irda_device.c b/net/irda/irda_device.c index 890bac0..e3debbd 100644 --- a/net/irda/irda_device.c +++ b/net/irda/irda_device.c @@ -343,12 +343,12 @@ static void irda_task_timer_expired(void *data) static void irda_device_setup(struct net_device *dev) { dev->hard_header_len = 0; - dev->addr_len = 0; + dev->addr_len = LAP_ALEN; dev->type = ARPHRD_IRDA; dev->tx_queue_len = 8; /* Window size + 1 s-frame */ - memset(dev->broadcast, 0xff, 4); + memset(dev->broadcast, 0xff, LAP_ALEN); dev->mtu = 2048; dev->flags = IFF_NOARP; |