summaryrefslogtreecommitdiff
path: root/target/linux/linux-2.4/patches
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-28 17:54:47 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-28 17:54:47 +0000
commitfefb504d9333137395d378c45330772d700d3912 (patch)
treed1c4fb476e8e5b09a91bf6d90f99c183a0cb877f /target/linux/linux-2.4/patches
parenta56ade574e849967b7d4560f09f73839dff72ac7 (diff)
fix ethtool call for communication between wl and wl.o
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1091 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/linux-2.4/patches')
-rw-r--r--target/linux/linux-2.4/patches/002-wl_fix.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/linux-2.4/patches/002-wl_fix.patch b/target/linux/linux-2.4/patches/002-wl_fix.patch
index e44a80b7bd..b534786d3e 100644
--- a/target/linux/linux-2.4/patches/002-wl_fix.patch
+++ b/target/linux/linux-2.4/patches/002-wl_fix.patch
@@ -330,3 +330,22 @@ diff -Nur linux-2.4.30/net/sched/sch_generic.c linux-2.4.30-wl-fix/net/sched/sch
BUG_TRAP(!timer_pending(&dev->watchdog_timer));
spin_unlock_bh(&dev->queue_lock);
write_unlock(&qdisc_tree_lock);
+diff -urN linux.old/net/core/dev.c linux.dev/net/core/dev.c
+--- linux.old/net/core/dev.c 2005-05-28 17:42:07.000000000 +0200
++++ linux.dev/net/core/dev.c 2005-05-28 20:38:06.000000000 +0200
+@@ -2223,6 +2223,7 @@
+ cmd == SIOCGMIIPHY ||
+ cmd == SIOCGMIIREG ||
+ cmd == SIOCSMIIREG ||
++ cmd == SIOCETHTOOL ||
+ cmd == SIOCWANDEV) {
+ if (dev->do_ioctl) {
+ if (!netif_device_present(dev))
+@@ -2405,6 +2406,7 @@
+
+ default:
+ if (cmd == SIOCWANDEV ||
++ (cmd == SIOCETHTOOL) ||
+ (cmd >= SIOCDEVPRIVATE &&
+ cmd <= SIOCDEVPRIVATE + 15)) {
+ dev_load(ifr.ifr_name);