* [PATCH] zd1211rw: sparse-annotate radiotap header
@ 2007-03-11 4:40 Pavel Roskin
2007-03-11 12:50 ` Ulrich Kunitz
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2007-03-11 4:40 UTC (permalink / raw)
To: linux-wireless, Daniel Drake, Ulrich Kunitz
All fields in radiotap header must be little endian. The driver does it
correctly, but the structure definition must be annotated.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
drivers/net/wireless/mac80211/zd1211rw/zd_mac.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/mac80211/zd1211rw/zd_mac.c b/drivers/net/wireless/mac80211/zd1211rw/zd_mac.c
index 5b9e04a..231ec2d 100644
--- a/drivers/net/wireless/mac80211/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/mac80211/zd1211rw/zd_mac.c
@@ -367,8 +367,8 @@ struct zd_rt_hdr {
struct ieee80211_radiotap_header rt_hdr;
u8 rt_flags;
u8 rt_rate;
- u16 rt_channel;
- u16 rt_chbitmask;
+ __le16 rt_channel;
+ __le16 rt_chbitmask;
} __attribute__((packed));
static void fill_rt_header(void *buffer, struct zd_mac *mac,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-11 12:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-11 4:40 [PATCH] zd1211rw: sparse-annotate radiotap header Pavel Roskin
2007-03-11 12:50 ` Ulrich Kunitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox