summaryrefslogtreecommitdiff
path: root/package/hostap-driver/files/lib/wifi
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-03-15 00:43:42 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-03-15 00:43:42 +0000
commit8692d2e7e363c5a956715bcad39cc00679d27ac6 (patch)
tree2e3f9c5f54c46da8efb82442aeba835a721d0490 /package/hostap-driver/files/lib/wifi
parent4fca99b1dc1635bb9770dd3ddf270b8e19022802 (diff)
downloadmtk-20170518-8692d2e7e363c5a956715bcad39cc00679d27ac6.zip
mtk-20170518-8692d2e7e363c5a956715bcad39cc00679d27ac6.tar.gz
mtk-20170518-8692d2e7e363c5a956715bcad39cc00679d27ac6.tar.bz2
hostap-driver: Fix unique device autodetection
SVN-Revision: 26163
Diffstat (limited to 'package/hostap-driver/files/lib/wifi')
-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 8ad378b..0eb0ff7 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