projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2cf47
)
ath5k: initialize common->clockrate
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Jul 2011 01:02:01 +0000
(09:02 +0800)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 13 Jul 2011 18:49:38 +0000
(14:49 -0400)
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>
drivers/net/wireless/ath/ath5k/base.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/base.c
b/drivers/net/wireless/ath/ath5k/base.c
index 3e5e9b73f1a3f5114b9945488e579500f65b9f16..523bb08545072c3f52f154520a46c7ca0d80c557 100644
(file)
--- 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