aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-02 07:48:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-07-02 07:48:34 +0000
commit7845c7b5124c9d14483a2a9bec997b3e9a6d1620 (patch)
tree24ae1a1b06b61fcdb4fdd24e292498607899ca2a
parent4fbc50d89a2d97cd1d4b2537a29cd6b2f85b3d48 (diff)
downloadupstream-7845c7b5124c9d14483a2a9bec997b3e9a6d1620.tar.gz
upstream-7845c7b5124c9d14483a2a9bec997b3e9a6d1620.tar.bz2
upstream-7845c7b5124c9d14483a2a9bec997b3e9a6d1620.zip
ath5k: fix a crash when setting coverage class before the first channel change (#9586)
SVN-Revision: 27352
-rw-r--r--package/mac80211/patches/443-ath5k_initialize_clockrate.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/mac80211/patches/443-ath5k_initialize_clockrate.patch b/package/mac80211/patches/443-ath5k_initialize_clockrate.patch
new file mode 100644
index 0000000000..fedc2f4650
--- /dev/null
+++ b/package/mac80211/patches/443-ath5k_initialize_clockrate.patch
@@ -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