Skip to content

Commit

Permalink
ath9k_hw: fix synth delay for half/quarter channels
Browse files Browse the repository at this point in the history
The radio needs twice / four times as much time to stabilize for half/quarter
channels.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jul 11, 2011
1 parent 0407cf1 commit 7d865c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/ath/ath9k/ar5008_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@ static void ar5008_hw_init_bb(struct ath_hw *ah,
else
synthDelay /= 10;

if (IS_CHAN_HALF_RATE(chan))
synthDelay *= 2;
else if (IS_CHAN_QUARTER_RATE(chan))
synthDelay *= 4;

REG_WRITE(ah, AR_PHY_ACTIVE, AR_PHY_ACTIVE_EN);

udelay(synthDelay + BASE_ACTIVATE_DELAY);
Expand Down

0 comments on commit 7d865c7

Please sign in to comment.