This patch fixes an endian-related issue when reading the EEPROM header. Signed-off-by: Sujith <Sujith.Manoharan@xxxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html