From 7691f45f535927e23394dddcc79c9f12ac9f4ffd Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Tue, 15 Mar 2011 00:43:42 +0000 Subject: [PATCH] [package] hostap-driver: Fix unique device autodetection SVN-Revision: 26163 --- package/hostap-driver/files/lib/wifi/hostap.sh | 4 ++-- 1 file 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 8ad378bee4..0eb0ff75ea 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 <