diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-04 17:11:56 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-04 17:11:56 +0000 |
commit | 82f4caadefef21fd129d9297d0f6ddf96a5aa568 (patch) | |
tree | 2c154db2be8c303108481a2e11ac2537386563b2 /package | |
parent | 3462bb923d659e4a4df11b06db40c40925c8ca89 (diff) | |
download | master-187ad058-82f4caadefef21fd129d9297d0f6ddf96a5aa568.tar.gz master-187ad058-82f4caadefef21fd129d9297d0f6ddf96a5aa568.tar.bz2 master-187ad058-82f4caadefef21fd129d9297d0f6ddf96a5aa568.zip |
[brcm-2.4] fix wrong numbering of interfaces in wireless detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19525 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index 75f8b085bb..c444ce8fd5 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -335,9 +335,9 @@ EOF detect_broadcom() { - local i=0 + local i=-1 - while [ -f /proc/net/wl$((i++)) ]; do + while [ -f /proc/net/wl$((++i)) ]; do config_get type wl${i} type [ "$type" = broadcom ] && continue cat <<EOF |