diff options
author | Alexander Aring <alex.aring@gmail.com> | 2013-10-30 09:18:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-30 17:18:46 -0400 |
commit | 3e69162ea4a9e927cb3619b96c86aae4ded60112 (patch) | |
tree | c04fe5483df3b23beec9a21a285606f5e34768f1 /net/mac802154 | |
parent | 3961532fd41f13e6d6958c44c0ccc567da144a79 (diff) | |
download | linux-3e69162ea4a9e927cb3619b96c86aae4ded60112.tar.bz2 |
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>
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/wpan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c index 2ca2f4dceab7..e24bcf977296 100644 --- a/net/mac802154/wpan.c +++ b/net/mac802154/wpan.c @@ -208,6 +208,8 @@ static int mac802154_header_create(struct sk_buff *skb, head[1] = fc >> 8; memcpy(skb_push(skb, pos), head, pos); + skb_reset_mac_header(skb); + skb->mac_len = pos; return pos; } |