Changeset 809


Ignore:
Timestamp:
2005-05-06T10:09:51+02:00 (13 years ago)
Author:
mbm
Message:

wlcompat probe bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/openwrt/wlcompat.c

    r733 r809  
    699699        char *devname = "eth0"; 
    700700         
    701         while (!found && devname[3] < '3') { 
    702                 devname[3]++; 
    703                  
    704                 dev = dev_get_by_name(devname); 
     701        while (!found && (dev = dev_get_by_name(devname))) { 
    705702                if ((wl_ioctl(dev, WLC_GET_MAGIC, &i, sizeof(i)) == 0) && i == WLC_IOCTL_MAGIC) 
    706703                        found = 1; 
     704                devname[3]++; 
    707705        } 
    708706         
Note: See TracChangeset for help on using the changeset viewer.