diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-05-30 19:38:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-05-30 19:38:38 +0000 |
commit | 340f1875ed67c4df30612f9fcd86b6fe9307c77a (patch) | |
tree | eb392a5dc848616550a5c47b5a2481f8e6b8bc1f /target/linux/package/wlcompat/wlcompat.c | |
parent | f45baccdc5081fc6245c9d567ddb47518f3dc84b (diff) | |
download | upstream-340f1875ed67c4df30612f9fcd86b6fe9307c77a.tar.gz upstream-340f1875ed67c4df30612f9fcd86b6fe9307c77a.tar.bz2 upstream-340f1875ed67c4df30612f9fcd86b6fe9307c77a.zip |
resync with kamikaze
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/wlcompat/wlcompat.c')
-rw-r--r-- | target/linux/package/wlcompat/wlcompat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/package/wlcompat/wlcompat.c b/target/linux/package/wlcompat/wlcompat.c index 7063c809a6..1540a21167 100644 --- a/target/linux/package/wlcompat/wlcompat.c +++ b/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) { |