aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>2011-11-10 02:39:37 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-14 00:19:43 -0500
commit4d039f684314b707fdae3c7262faf4a80c548194 (patch)
treed71340e2a44e66e2f46667d7abb96522075cdd1d /net/ieee802154
parente86586ba8c570591372bc6cd0435a9bc1364c6d5 (diff)
6LoWPAN: set proper netdev flags
This patch fixes settings for device initialization which makes possible to use NDISC and TCP. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index af5553eb1283..39ec6e018227 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -973,13 +973,12 @@ static void lowpan_setup(struct net_device *dev)
973 dev->addr_len = IEEE802154_ADDR_LEN; 973 dev->addr_len = IEEE802154_ADDR_LEN;
974 memset(dev->broadcast, 0xff, IEEE802154_ADDR_LEN); 974 memset(dev->broadcast, 0xff, IEEE802154_ADDR_LEN);
975 dev->type = ARPHRD_IEEE802154; 975 dev->type = ARPHRD_IEEE802154;
976 dev->features = NETIF_F_NO_CSUM;
977 /* Frame Control + Sequence Number + Address fields + Security Header */ 976 /* Frame Control + Sequence Number + Address fields + Security Header */
978 dev->hard_header_len = 2 + 1 + 20 + 14; 977 dev->hard_header_len = 2 + 1 + 20 + 14;
979 dev->needed_tailroom = 2; /* FCS */ 978 dev->needed_tailroom = 2; /* FCS */
980 dev->mtu = 1281; 979 dev->mtu = 1281;
981 dev->tx_queue_len = 0; 980 dev->tx_queue_len = 0;
982 dev->flags = IFF_NOARP | IFF_BROADCAST; 981 dev->flags = IFF_BROADCAST | IFF_MULTICAST;
983 dev->watchdog_timeo = 0; 982 dev->watchdog_timeo = 0;
984 983
985 dev->netdev_ops = &lowpan_netdev_ops; 984 dev->netdev_ops = &lowpan_netdev_ops;