ieee802154: fix skb get fc on big endian
authorAlexander Aring <aar@pengutronix.de>
Wed, 6 Jul 2016 21:32:27 +0000 (23:32 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Jul 2016 11:23:12 +0000 (13:23 +0200)
commitaaa7088eb29a0ffe6cf8d8a443695df41e5a62f3
tree2150a78d7d9d057328830eb92eb864197d930d2b
parent0ea0b9af9b7599ada307258dc841f4300873e8a1
ieee802154: fix skb get fc on big endian

This patch fixes ieee802154_get_fc_from_skb function on big endian
machines. The function get_unaligned_le16 converts the byte order to
host byte order but we want to keep the byte order like in mac header.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/mac802154.h