mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-23 15:12:50 +00:00
19 lines
398 B
Diff
19 lines
398 B
Diff
|
--- a/driver/wl_iw.c
|
||
|
+++ b/driver/wl_iw.c
|
||
|
@@ -112,10 +112,14 @@
|
||
|
ifr.ifr_data = (caddr_t) &ioc;
|
||
|
|
||
|
/* Must be up for virtually all useful ioctls */
|
||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
|
||
|
+ dev_open(dev, NULL);
|
||
|
+#else
|
||
|
dev_open(dev);
|
||
|
+#endif
|
||
|
|
||
|
fs = get_fs();
|
||
|
- set_fs(get_ds());
|
||
|
+ set_fs(KERNEL_DS);
|
||
|
ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
|
||
|
set_fs(fs);
|
||
|
|