aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/dgram.c
diff options
context:
space:
mode:
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>2014-03-14 16:23:59 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-14 22:15:26 -0400
commitb70ab2e87f17176d18f67ef331064441a032b5f3 (patch)
tree634b1482ab909ebe4d62b2a786378ad9584f922a /net/ieee802154/dgram.c
parent46ef0eb3ea65e7043aac17cb92982be879c65366 (diff)
ieee802154: enforce consistent endianness in the 802.15.4 stack
Enable sparse warnings about endianness, replace the remaining fields regarding network operations without explicit endianness annotations with such that are annotated, and propagate this through the entire stack. Uses of ieee802154_addr_sa are not changed yet, this patch is only concerned with all other fields (such as address filters, operation parameters and the likes). Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/dgram.c')
-rw-r--r--net/ieee802154/dgram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/dgram.c b/net/ieee802154/dgram.c
index 405fdf9bf5e1..9df3a1d94376 100644
--- a/net/ieee802154/dgram.c
+++ b/net/ieee802154/dgram.c
@@ -363,8 +363,8 @@ int ieee802154_dgram_deliver(struct net_device *dev, struct sk_buff *skb)
363 /* Data frame processing */ 363 /* Data frame processing */
364 BUG_ON(dev->type != ARPHRD_IEEE802154); 364 BUG_ON(dev->type != ARPHRD_IEEE802154);
365 365
366 pan_id = ieee802154_mlme_ops(dev)->get_pan_id(dev); 366 pan_id = le16_to_cpu(ieee802154_mlme_ops(dev)->get_pan_id(dev));
367 short_addr = ieee802154_mlme_ops(dev)->get_short_addr(dev); 367 short_addr = le16_to_cpu(ieee802154_mlme_ops(dev)->get_short_addr(dev));
368 368
369 read_lock(&dgram_lock); 369 read_lock(&dgram_lock);
370 sk_for_each(sk, &dgram_head) { 370 sk_for_each(sk, &dgram_head) {