diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-12 09:02:01 +0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-13 14:49:38 -0400 |
commit | 26d16d23e621cdc679118ca2fe604752b3a36e9f (patch) | |
tree | dfd46001ccb9b4c7203131aeee00dbe44232a471 /drivers/net/wireless | |
parent | 2d2cf471d51743c631f216f62a02a62b58126191 (diff) | |
download | talos-op-linux-26d16d23e621cdc679118ca2fe604752b3a36e9f.tar.gz talos-op-linux-26d16d23e621cdc679118ca2fe604752b3a36e9f.zip |
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 1 |
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) common->ah = sc->ah; common->hw = hw; common->priv = sc; + common->clockrate = 40; /* * Cache line size is used to size and align various |