6lowpan: set and use mac_len for mac header length
authorAlexander Aring <alex.aring@gmail.com>
Wed, 30 Oct 2013 08:18:22 +0000 (09:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2013 21:18:46 +0000 (17:18 -0400)
commit3e69162ea4a9e927cb3619b96c86aae4ded60112
treec04fe5483df3b23beec9a21a285606f5e34768f1
parent3961532fd41f13e6d6958c44c0ccc567da144a79
6lowpan: set and use mac_len for mac header length

Set the mac header length while creating the 802.15.4 mac header.

Drop the function for recalculate mac header length in upper layers
which was static and works for intra pan communication only.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c
net/mac802154/wpan.c