summaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-04 17:11:56 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-04 17:11:56 +0000
commit64f5d1ab97be915578c4cbcfd5fa84786a6ed578 (patch)
tree2c154db2be8c303108481a2e11ac2537386563b2 /package/broadcom-wl
parent11cce4134366fce85ad1f58eda28ffcceee44b82 (diff)
[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/broadcom-wl')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh4
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 75f8b085b..c444ce8fd 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