summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-02 07:48:34 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-02 07:48:34 +0000
commitf1f039671842b147f2a7bb55642e4541f4c714ea (patch)
treee038d0678007e79f3d87f45eaf9a050b18a993d2
parente0457ac4da0c2d87a394b10ce17a4bc5c864a632 (diff)
ath5k: fix a crash when setting coverage class before the first channel change (#9586)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27352 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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