mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 09:10:02 +00:00
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 438c8a7f880d3350e82ea34c20127f2a0040eda9 Mon Sep 17 00:00:00 2001
|
|
From: Jianhui Zhao <jianhui.zhao@gl-inet.com>
|
|
Date: Mon, 8 May 2023 11:32:35 +0800
|
|
Subject: [PATCH] kernel: wext: support old private wifi driver
|
|
|
|
Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
|
|
---
|
|
.../922-wext-support-old-private-wifi-driver.patch | 14 ++++++++++++++
|
|
1 file changed, 14 insertions(+)
|
|
create mode 100644 target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch
|
|
|
|
diff --git a/target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch b/target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch
|
|
new file mode 100644
|
|
index 0000000000..f112996698
|
|
--- /dev/null
|
|
+++ b/target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch
|
|
@@ -0,0 +1,14 @@
|
|
+--- a/net/wireless/wext-core.c
|
|
++++ b/net/wireless/wext-core.c
|
|
+@@ -956,6 +956,11 @@ static int wireless_process_ioctl(struct
|
|
+ else if (private)
|
|
+ return private(dev, iwr, cmd, info, handler);
|
|
+ }
|
|
++
|
|
++ /* Old driver API : call driver ioctl handler */
|
|
++ if (dev->netdev_ops->ndo_do_ioctl)
|
|
++ return dev->netdev_ops->ndo_do_ioctl(dev, (struct ifreq *)iwr, cmd);
|
|
++
|
|
+ return -EOPNOTSUPP;
|
|
+ }
|
|
+
|
|
--
|
|
2.34.1
|
|
|