Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26d16d23 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath5k: initialize common->clockrate



Fixes a division by zero when setting distance before activating the
device for the first time.

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Acked-by: default avatarNick Kossifidis <mickflemm@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2d2cf471
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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