ath9k: Fix endiannes of EEPROM header
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(-)
drivers/net/wireless/ath9k/eeprom.h +16 -3
@@ -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 ];
Signature · 1 line
1.6.1
PATCH 2/4 ath9k: Fix endiannes of EEPROM header
Quoted 3 lines · Sujith Manoharan
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