From: Felix Fietkau Date: Tue, 7 Feb 2017 10:36:31 +0000 (+0100) Subject: mac80211: fix ath9k kernel crash with linux 4.9 X-Git-Tag: v18.06.0-rc1~3773 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a4d2e451950fa6724c59de92ef9c62af5a50e1e;p=oweals%2Fopenwrt.git mac80211: fix ath9k kernel crash with linux 4.9 Signed-off-by: Felix Fietkau --- 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 2900ece914..d4269282d9 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 + 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 + + gc->gchip.owner = NULL; + sc->gpiochip = gc; -+ gc->sc = sc; +} + +/* remove GPIO chip */