aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ieee802154.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ieee802154.h b/include/linux/ieee802154.h
index 9da7c011fbba..5d9e7459d94b 100644
--- a/include/linux/ieee802154.h
+++ b/include/linux/ieee802154.h
@@ -24,6 +24,7 @@
24#define LINUX_IEEE802154_H 24#define LINUX_IEEE802154_H
25 25
26#include <linux/types.h> 26#include <linux/types.h>
27#include <asm/byteorder.h>
27 28
28#define IEEE802154_MTU 127 29#define IEEE802154_MTU 127
29#define IEEE802154_MIN_PSDU_LEN 5 30#define IEEE802154_MIN_PSDU_LEN 5
@@ -208,8 +209,8 @@ static inline bool ieee802154_is_valid_extended_addr(const __le64 addr)
208 * This is currently a workaround because neighbor discovery can't 209 * This is currently a workaround because neighbor discovery can't
209 * deal with short addresses types right now. 210 * deal with short addresses types right now.
210 */ 211 */
211 return ((addr != 0x0000000000000000ULL) || 212 return ((addr != cpu_to_le64(0x0000000000000000ULL)) ||
212 (addr != 0xffffffffffffffffULL)); 213 (addr != cpu_to_le64(0xffffffffffffffffULL)));
213} 214}
214 215
215#endif /* LINUX_IEEE802154_H */ 216#endif /* LINUX_IEEE802154_H */