6lowpan: cleanup lowpan_header_compress
authorAlexander Aring <alex.aring@gmail.com>
Tue, 13 Oct 2015 11:42:57 +0000 (13:42 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 20 Oct 2015 22:49:24 +0000 (00:49 +0200)
commita6f773891a836abfa16fcbb8af14c29c3e109336
tree97e5b62ea7604491c007b0935ee04427c22cc933
parentbf513fd6fc609590b7835c0dba624ccb9f8f9214
6lowpan: cleanup lowpan_header_compress

This patch changes the lowpan_header_compress function by removing
unused parameters like "len" and drop static value parameters of
protocol type. Instead we really check the protocol type inside inside
the skb structure. Also we drop the use of IEEE802154_ADDR_LEN which is
link-layer specific. Instead we using EUI64_ADDR_LEN which should always
the default case for now.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/6lowpan.h
net/6lowpan/iphc.c
net/bluetooth/6lowpan.c
net/ieee802154/6lowpan/tx.c