summaryrefslogtreecommitdiffstats
path: root/package/hostap-driver
diff options
context:
space:
mode:
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-15 00:43:42 +0000
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-15 00:43:42 +0000
commit9c435c9f94da8c20fc6f6fe88f93de238899fb60 (patch)
tree60b37efc5720271beb935501b24c5c71bff4833d /package/hostap-driver
parente413152aaacaeb22227e2c76c44c0dc84b822568 (diff)
[package] hostap-driver: Fix unique device autodetection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26163 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostap-driver')
-rwxr-xr-xpackage/hostap-driver/files/lib/wifi/hostap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh
index 8ad378bee..0eb0ff75e 100755
--- a/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -220,7 +220,7 @@ enable_prism2() {
}
-check_device() {
+check_prism2_device() {
[ ${1%[0-9]} = "wlan" ] && config_set "$1" phy "$1"
config_get phy "$1" phy
[ -z "$phy" ] && {
@@ -242,7 +242,7 @@ detect_prism2() {
[ -d wlan* ] || return
for dev in $(ls -d wlan* 2>&-); do
found=0
- config_foreach check_device wifi-device
+ config_foreach check_prism2_device wifi-device
[ "$found" -gt 0 ] && continue
cat <<EOF