diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ieee80211_radiotap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index 22e047758ba1..dfd8bf66ce27 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h | |||
@@ -40,6 +40,7 @@ | |||
40 | 40 | ||
41 | #include <linux/if_ether.h> | 41 | #include <linux/if_ether.h> |
42 | #include <linux/kernel.h> | 42 | #include <linux/kernel.h> |
43 | #include <asm/unaligned.h> | ||
43 | 44 | ||
44 | /* Radiotap header version (from official NetBSD feed) */ | 45 | /* Radiotap header version (from official NetBSD feed) */ |
45 | #define IEEE80211RADIOTAP_VERSION "1.5" | 46 | #define IEEE80211RADIOTAP_VERSION "1.5" |
@@ -261,7 +262,7 @@ static inline int ieee80211_get_radiotap_len(unsigned char *data) | |||
261 | struct ieee80211_radiotap_header *hdr = | 262 | struct ieee80211_radiotap_header *hdr = |
262 | (struct ieee80211_radiotap_header *)data; | 263 | (struct ieee80211_radiotap_header *)data; |
263 | 264 | ||
264 | return le16_to_cpu(hdr->it_len); | 265 | return le16_to_cpu(get_unaligned(&hdr->it_len)); |
265 | } | 266 | } |
266 | 267 | ||
267 | #endif /* IEEE80211_RADIOTAP_H */ | 268 | #endif /* IEEE80211_RADIOTAP_H */ |