From: Pavel Roskin <proski@gnu.org>
To: linux-wireless@vger.kernel.org, Daniel Drake <dsd@gentoo.org>,
Ulrich Kunitz <kune@deine-taler.de>
Subject: [PATCH] zd1211rw: sparse-annotate radiotap header
Date: Sat, 10 Mar 2007 23:40:16 -0500 [thread overview]
Message-ID: <20070311044016.1351.41028.stgit@dv.roinet.com> (raw)
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,
next reply other threads:[~2007-03-11 4:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-11 4:40 Pavel Roskin [this message]
2007-03-11 12:50 ` [PATCH] zd1211rw: sparse-annotate radiotap header Ulrich Kunitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070311044016.1351.41028.stgit@dv.roinet.com \
--to=proski@gnu.org \
--cc=dsd@gentoo.org \
--cc=kune@deine-taler.de \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox