Search Linux Wireless

Re: [PATCH 01/11] ath9k_hw: Fix a reset failure on AR9382 (2x2).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux