On 2010-11-10 2:03 PM, Vasanthakumar Thiagarajan wrote: > From: Senthil Balasubramanian <senthilkumar@xxxxxxxxxxx> > > AR9382 needs to be configured for the correct chain mask before > running AGC/TxIQ caliberation. Otherwise reset would fail. > > Signed-off-by: Senthil Balasubramanian <senthilkumar@xxxxxxxxxxx> > --- > drivers/net/wireless/ath/ath9k/ar9003_calib.c | 7 +++++++ > drivers/net/wireless/ath/ath9k/reg.h | 2 ++ > 2 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c b/drivers/net/wireless/ath/ath9k/ar9003_calib.c > index 9e6edff..ba898f2 100644 > --- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c > +++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c > @@ -718,7 +718,14 @@ static bool ar9003_hw_init_cal(struct ath_hw *ah, > struct ath9k_channel *chan) > { > struct ath_common *common = ath9k_hw_common(ah); > + int val; > > + val = REG_READ(ah, AR_ENT_OTP); > + ath_print(common, ATH_DBG_CALIBRATE, "ath9k: AR_ENT_OTP 0x%x\n", val); > + > + if (val & AR_ENT_OTP_CHAIN2_DISABLE) > + ar9003_hw_set_chain_masks(ah, 0x3, 0x3); > + else > /* > * 0x7 = 0b111 , AR9003 needs to be configured for 3-chain mode before > * running AGC/TxIQ cals This messes up the code formatting, the lines after that need some indenting. - Felix -- 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