]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: wireless compatible with deprecated wext api
authorKyson Lok <kysonlok@gmail.com>
Mon, 20 Aug 2018 06:16:19 +0000 (14:16 +0800)
committerKyson Lok <kysonlok@gmail.com>
Mon, 20 Aug 2018 06:19:19 +0000 (14:19 +0800)
target/linux/generic/hack-4.14/801-wireless_compatible_with_deprecated_wext_api.patch [new file with mode: 0644]

diff --git a/target/linux/generic/hack-4.14/801-wireless_compatible_with_deprecated_wext_api.patch b/target/linux/generic/hack-4.14/801-wireless_compatible_with_deprecated_wext_api.patch
new file mode 100644 (file)
index 0000000..f900788
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/net/wireless/wext-core.c
++++ b/net/wireless/wext-core.c
+@@ -956,6 +956,12 @@ static int wireless_process_ioctl(struct
+               else if (private)
+                       return private(dev, iwr, cmd, info, handler);
+       }
++
++      /* Old driver API : call ioctl handler */
++      if (dev->netdev_ops->ndo_do_ioctl) {
++              return dev->netdev_ops->ndo_do_ioctl(dev, (struct ifreq *)iwr, cmd);
++      }
++
+       return -EOPNOTSUPP;
+ }