mac80211: fix ath9k kernel crash with linux 4.9
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
ea269c37b8
commit
2a4d2e4519
1 changed files with 1 additions and 1 deletions
|
@ -123,6 +123,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||||
+ if (!gc)
|
+ if (!gc)
|
||||||
+ return;
|
+ return;
|
||||||
+
|
+
|
||||||
|
+ gc->sc = sc;
|
||||||
+ snprintf(gc->label, sizeof(gc->label), "ath9k-%s",
|
+ snprintf(gc->label, sizeof(gc->label), "ath9k-%s",
|
||||||
+ wiphy_name(sc->hw->wiphy));
|
+ wiphy_name(sc->hw->wiphy));
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)
|
+#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;
|
+ gc->gchip.owner = NULL;
|
||||||
+ sc->gpiochip = gc;
|
+ sc->gpiochip = gc;
|
||||||
+ gc->sc = sc;
|
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+/* remove GPIO chip */
|
+/* remove GPIO chip */
|
||||||
|
|
Loading…
Reference in a new issue