From: Felix Fietkau Date: Thu, 19 Apr 2012 19:18:24 +0000 (+0200) Subject: ath9k_hw: set the PHY mode for half/quarter channels on AR9003 X-Git-Tag: v3.5-rc1~109^2~267^2^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08685ce30f1f4d26c91f0bde1a07df1135fb5755;p=platform%2Fkernel%2Flinux-3.10.git ath9k_hw: set the PHY mode for half/quarter channels on AR9003 Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index bbda25f..be6069b 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c @@ -723,6 +723,10 @@ static void ar9003_hw_set_rfmode(struct ath_hw *ah, if (IS_CHAN_A_FAST_CLOCK(ah, chan)) rfMode |= (AR_PHY_MODE_DYNAMIC | AR_PHY_MODE_DYN_CCK_DISABLE); + if (IS_CHAN_QUARTER_RATE(chan)) + rfMode |= AR_PHY_MODE_QUARTER; + if (IS_CHAN_HALF_RATE(chan)) + rfMode |= AR_PHY_MODE_HALF; REG_WRITE(ah, AR_PHY_MODE, rfMode); }