From 18d730efee1d845f99f53f001b4f39b6311aa5f3 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 6 May 2006 02:34:35 +0000 Subject: rename wl.o wireless interface from ethX to wl0 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3732 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/target/linux/package/wlcompat/wlcompat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openwrt/target/linux/package/wlcompat') diff --git a/openwrt/target/linux/package/wlcompat/wlcompat.c b/openwrt/target/linux/package/wlcompat/wlcompat.c index 7063c809a..1540a2116 100644 --- a/openwrt/target/linux/package/wlcompat/wlcompat.c +++ b/openwrt/target/linux/package/wlcompat/wlcompat.c @@ -980,13 +980,13 @@ static int new_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) { static int __init wlcompat_init() { int found = 0, i; - char *devname = "eth0"; + char devname[4] = "wl0"; bss_force = 0; while (!found && (dev = dev_get_by_name(devname))) { if ((dev->wireless_handlers == NULL) && ((wl_ioctl(dev, WLC_GET_MAGIC, &i, sizeof(i)) == 0) && i == WLC_IOCTL_MAGIC)) found = 1; - devname[3]++; + devname[2]++; } if (!found) { -- cgit v1.2.3