aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ieee802154_netdev.h
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 /include/net/ieee802154_netdev.h
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 'include/net/ieee802154_netdev.h')
-rw-r--r--include/net/ieee802154_netdev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h
index 86d5d50a6a53..e4810d566b1b 100644
--- a/include/net/ieee802154_netdev.h
+++ b/include/net/ieee802154_netdev.h
@@ -171,7 +171,7 @@ struct ieee802154_mlme_ops {
171 u8 channel, u8 page, u8 cap); 171 u8 channel, u8 page, u8 cap);
172 int (*assoc_resp)(struct net_device *dev, 172 int (*assoc_resp)(struct net_device *dev,
173 struct ieee802154_addr_sa *addr, 173 struct ieee802154_addr_sa *addr,
174 u16 short_addr, u8 status); 174 __le16 short_addr, u8 status);
175 int (*disassoc_req)(struct net_device *dev, 175 int (*disassoc_req)(struct net_device *dev,
176 struct ieee802154_addr_sa *addr, 176 struct ieee802154_addr_sa *addr,
177 u8 reason); 177 u8 reason);
@@ -190,8 +190,8 @@ struct ieee802154_mlme_ops {
190 * FIXME: these should become the part of PIB/MIB interface. 190 * FIXME: these should become the part of PIB/MIB interface.
191 * However we still don't have IB interface of any kind 191 * However we still don't have IB interface of any kind
192 */ 192 */
193 u16 (*get_pan_id)(const struct net_device *dev); 193 __le16 (*get_pan_id)(const struct net_device *dev);
194 u16 (*get_short_addr)(const struct net_device *dev); 194 __le16 (*get_short_addr)(const struct net_device *dev);
195 u8 (*get_dsn)(const struct net_device *dev); 195 u8 (*get_dsn)(const struct net_device *dev);
196}; 196};
197 197