From: Sujith <Sujith.Manoharan@atheros.com>
To: <linville@tuxdriver.com>
Cc: <linux-wireless@vger.kernel.org>, <Jouni.Malinen@Atheros.com>,
<Luis.Rodriguez@Atheros.com>
Subject: [PATCH 2/4] ath9k: Fix endiannes of EEPROM header
Date: Mon, 16 Feb 2009 13:25:06 +0530 [thread overview]
Message-ID: <18841.7130.956050.285308@gargle.gargle.HOWL> (raw)
This patch fixes an endian-related issue when
reading the EEPROM header.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
---
drivers/net/wireless/ath9k/eeprom.h | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h
index 2cfea5d..d14429b 100644
--- a/drivers/net/wireless/ath9k/eeprom.h
+++ b/drivers/net/wireless/ath9k/eeprom.h
@@ -303,10 +303,23 @@ struct modal_eep_header {
u8 xatten2Margin[AR5416_MAX_CHAINS];
u8 ob_ch1;
u8 db_ch1;
+#ifdef __BIG_ENDIAN
u8 useAnt1:1,
- force_xpaon:1,
- local_bias:1,
- femBandSelectUsed:1, xlnabufin:1, xlnaisel:2, xlnabufmode:1;
+ force_xpaon:1,
+ local_bias:1,
+ femBandSelectUsed:1,
+ xlnabufin:1,
+ xlnaisel:2,
+ xlnabufmode:1;
+#else
+ u8 xlnabufmode:1,
+ xlnaisel:2,
+ xlnabufin:1,
+ femBandSelectUsed:1,
+ local_bias:1,
+ force_xpaon:1,
+ useAnt1:1;
+#endif
u8 miscBits;
u16 xpaBiasLvlFreq[3];
u8 futureModal[6];
--
1.6.1
next reply other threads:[~2009-02-16 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-16 7:55 Sujith [this message]
2009-02-16 9:02 ` [PATCH 2/4] ath9k: Fix endiannes of EEPROM header Sujith
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=18841.7130.956050.285308@gargle.gargle.HOWL \
--to=sujith.manoharan@atheros.com \
--cc=Jouni.Malinen@Atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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