ath5k: fix a crash when setting coverage class before the first channel change (#9586)

SVN-Revision: 27352
lede-17.01
Felix Fietkau 2011-07-02 07:48:34 +00:00
parent 4fbc50d89a
commit 7845c7b512
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2422,6 +2422,7 @@ ath5k_init_softc(struct ath5k_softc *sc,
common->ah = sc->ah;
common->hw = hw;
common->priv = sc;
+ common->clockrate = 40;
/*
* Cache line size is used to size and align various