aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-11 21:02:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-13 14:49:38 -0400
commit26d16d23e621cdc679118ca2fe604752b3a36e9f (patch)
treedfd46001ccb9b4c7203131aeee00dbe44232a471
parent2d2cf471d51743c631f216f62a02a62b58126191 (diff)
ath5k: initialize common->clockrate
Fixes a division by zero when setting distance before activating the device for the first time. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Acked-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 3e5e9b73f1a3..523bb0854507 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2420,6 +2420,7 @@ ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops)
2420 common->ah = sc->ah; 2420 common->ah = sc->ah;
2421 common->hw = hw; 2421 common->hw = hw;
2422 common->priv = sc; 2422 common->priv = sc;
2423 common->clockrate = 40;
2423 2424
2424 /* 2425 /*
2425 * Cache line size is used to size and align various 2426 * Cache line size is used to size and align various