Skip to content

Commit

Permalink
ath9k_hw: fix regression in ANI listen time calculation
Browse files Browse the repository at this point in the history
  wireless-testing
  commit 37e5bf6
  Author: Luis R. Rodriguez <lrodriguez@atheros.com>
  Date:   Sat Jun 12 00:33:40 2010 -0400

    ath9k_hw: fix clock rate calculations for ANI

This commit accidentally broke clock rate calculation by doubling the
calculated clock rate

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 Oct 6, 2010
1 parent e7ee762 commit 918df62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/ani.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static u8 ath9k_hw_chan_2_clockrate_mhz(struct ath_hw *ah)
if (conf_is_ht40(conf))
return clockrate * 2;

return clockrate * 2;
return clockrate;
}

static int32_t ath9k_hw_ani_get_listen_time(struct ath_hw *ah)
Expand Down

0 comments on commit 918df62

Please sign in to comment.