diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-05-06 02:34:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-05-06 02:34:35 +0000 |
commit | 42544ede7a13108221f17e5c2228dbd9e7abeebf (patch) | |
tree | 57fedd8cec34e2b92ad6649822d6d285e5bb75e1 /openwrt/target/linux/package/wlcompat | |
parent | e5d63ed4c7ad38c90b55c7fbfd6a2ef42cafb0a9 (diff) | |
download | mtk-20170518-42544ede7a13108221f17e5c2228dbd9e7abeebf.zip mtk-20170518-42544ede7a13108221f17e5c2228dbd9e7abeebf.tar.gz mtk-20170518-42544ede7a13108221f17e5c2228dbd9e7abeebf.tar.bz2 |
rename wl.o wireless interface from ethX to wl0
SVN-Revision: 3732
Diffstat (limited to 'openwrt/target/linux/package/wlcompat')
-rw-r--r-- | openwrt/target/linux/package/wlcompat/wlcompat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/target/linux/package/wlcompat/wlcompat.c b/openwrt/target/linux/package/wlcompat/wlcompat.c index 7063c80..1540a21 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) { |