mac80211: fix ath9k kernel crash with linux 4.9

Signed-off-by: Felix Fietkau <nbd@nbd.name>
openwrt-18.06
Felix Fietkau 2017-02-07 11:36:31 +01:00
parent ea269c37b8
commit 2a4d2e4519
1 changed files with 1 additions and 1 deletions

View File

@ -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 */