Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66236
b: refs/heads/master
c: dfe6e81
h: refs/heads/master
v: v3
  • Loading branch information
Andy Green authored and David S. Miller committed Oct 10, 2007
1 parent c0986f5 commit 6dca528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ec0b7ac3cdfb8635d75aead5733f7a424ea4ad3
refs/heads/master: dfe6e81deaa79c85086c0cc8d85b229e444ab97f
3 changes: 2 additions & 1 deletion trunk/include/net/ieee80211_radiotap.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include <linux/if_ether.h>
#include <linux/kernel.h>
#include <asm/unaligned.h>

/* Radiotap header version (from official NetBSD feed) */
#define IEEE80211RADIOTAP_VERSION "1.5"
Expand Down Expand Up @@ -261,7 +262,7 @@ static inline int ieee80211_get_radiotap_len(unsigned char *data)
struct ieee80211_radiotap_header *hdr =
(struct ieee80211_radiotap_header *)data;

return le16_to_cpu(hdr->it_len);
return le16_to_cpu(get_unaligned(&hdr->it_len));
}

#endif /* IEEE80211_RADIOTAP_H */

0 comments on commit 6dca528

Please sign in to comment.