ath5k: initialize common->clockrate
authorFelix Fietkau <nbd@openwrt.org>
Tue, 12 Jul 2011 01:02:01 +0000 (09:02 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Jul 2011 18:49:38 +0000 (14:49 -0400)
commit26d16d23e621cdc679118ca2fe604752b3a36e9f
treedfd46001ccb9b4c7203131aeee00dbe44232a471
parent2d2cf471d51743c631f216f62a02a62b58126191
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>
drivers/net/wireless/ath/ath5k/base.c