summaryrefslogtreecommitdiff
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-07 11:36:31 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-07 11:38:54 +0100
commit2a4d2e451950fa6724c59de92ef9c62af5a50e1e (patch)
treedc6d08d539643861f8cac213cb00a7b045b3d0aa /package/kernel
parentea269c37b83b9e6b93e35d576b49a6e0ae8ea0b9 (diff)
downloadmtk-20170518-2a4d2e451950fa6724c59de92ef9c62af5a50e1e.zip
mtk-20170518-2a4d2e451950fa6724c59de92ef9c62af5a50e1e.tar.gz
mtk-20170518-2a4d2e451950fa6724c59de92ef9c62af5a50e1e.tar.bz2
mac80211: fix ath9k kernel crash with linux 4.9
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch b/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
index 2900ece..d426928 100644
--- a/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
+++ b/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
@@ -123,6 +123,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
+ if (!gc)
+ return;
+
++ gc->sc = sc;
+ snprintf(gc->label, sizeof(gc->label), "ath9k-%s",
+ wiphy_name(sc->hw->wiphy));
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)
@@ -146,7 +147,6 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
+
+ gc->gchip.owner = NULL;
+ sc->gpiochip = gc;
-+ gc->sc = sc;
+}
+
+/* remove GPIO chip */