aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/files/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-02-04 17:11:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-02-04 17:11:56 +0000
commit76df66cda8de527e3497a078a922718e2a317cf7 (patch)
tree2a3f50e0e94b6a051cd22212542693b349da1aa8 /package/broadcom-wl/files/lib
parent01af81f06f73e76a39081eea3b3191776787cccf (diff)
downloadupstream-76df66cda8de527e3497a078a922718e2a317cf7.tar.gz
upstream-76df66cda8de527e3497a078a922718e2a317cf7.tar.bz2
upstream-76df66cda8de527e3497a078a922718e2a317cf7.zip
fix wrong numbering of interfaces in wireless detection
SVN-Revision: 19525
Diffstat (limited to 'package/broadcom-wl/files/lib')
-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 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