ath9k: add a temporary uci option for setting the channel bandwidth
[openwrt.git] / package / mac80211 / patches / 548-ath9k_half_quarter_synth_delay.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c
3 @@ -627,6 +627,11 @@ static void ar5008_hw_init_bb(struct ath
4 else
5 synthDelay /= 10;
6
7 + if (IS_CHAN_HALF_RATE(chan))
8 + synthDelay *= 2;
9 + else if (IS_CHAN_QUARTER_RATE(chan))
10 + synthDelay *= 4;
11 +
12 REG_WRITE(ah, AR_PHY_ACTIVE, AR_PHY_ACTIVE_EN);
13
14 udelay(synthDelay + BASE_ACTIVATE_DELAY);
This page took 0.044533 seconds and 5 git commands to generate.