* [PATCH 2/4] ath9k: Fix endiannes of EEPROM header
@ 2009-02-16 7:55 Sujith
2009-02-16 9:02 ` Sujith
0 siblings, 1 reply; 2+ messages in thread
From: Sujith @ 2009-02-16 7:55 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, Jouni.Malinen, Luis.Rodriguez
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-16 9:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16 7:55 [PATCH 2/4] ath9k: Fix endiannes of EEPROM header Sujith
2009-02-16 9:02 ` Sujith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox