[brcm-2.4] fix wrong numbering of interfaces in wireless detection
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Feb 2010 17:11:56 +0000 (17:11 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Feb 2010 17:11:56 +0000 (17:11 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19525 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/broadcom-wl/files/lib/wifi/broadcom.sh

index 75f8b08..c444ce8 100644 (file)
@@ -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
This page took 0.036889 seconds and 4 git commands to generate.