mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 07:51:05 +02:00
[package] hostap-driver: Fix unique device autodetection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26163 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e413152aaa
commit
9c435c9f94
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user