2009-02-16 07:58:59

by Sujith

[permalink] [raw]
Subject: [PATCH 2/4] ath9k: Fix endiannes of EEPROM header

This patch fixes an endian-related issue when
reading the EEPROM header.

Signed-off-by: Sujith <[email protected]>
---
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



2009-02-16 09:06:52

by Sujith

[permalink] [raw]
Subject: [PATCH 2/4] ath9k: Fix endiannes of EEPROM header

Sujith Manoharan wrote:
> This patch fixes an endian-related issue when
> reading the EEPROM header.
>

John,

Please drop this patch, will send a proper fix later.
The other 3 patches in the series can be applied. Thanks.

Sujith