X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fdedeckeh.git;a=blobdiff_plain;f=openwrt%2Ftarget%2Flinux%2Fpackage%2Fwlcompat%2Fwlcompat.c;fp=openwrt%2Ftarget%2Flinux%2Fpackage%2Fwlcompat%2Fwlcompat.c;h=1540a211676bafa84780412fc397a4d015924168;hp=7063c809a6bd4462aa0923ea19df6e8a0e4b62e4;hb=42544ede7a13108221f17e5c2228dbd9e7abeebf;hpb=e5d63ed4c7ad38c90b55c7fbfd6a2ef42cafb0a9 diff --git a/openwrt/target/linux/package/wlcompat/wlcompat.c b/openwrt/target/linux/package/wlcompat/wlcompat.c index 7063c809a6..1540a21167 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) {