mirror of https://github.com/hak5/openwrt.git
mac80211: fix ath9k kernel crash with linux 4.9
Signed-off-by: Felix Fietkau <nbd@nbd.name>openwrt-18.06
parent
ea269c37b8
commit
2a4d2e4519
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue