mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-11 17:34:57 +00:00
madwifi: Fix unique device autodetection
SVN-Revision: 26164
This commit is contained in:
parent
8692d2e7e3
commit
96bb1c7585
@ -406,7 +406,7 @@ enable_atheros() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
check_device() {
|
check_atheros_device() {
|
||||||
[ ${1%[0-9]} = "wifi" ] && config_set "$1" phy "$1"
|
[ ${1%[0-9]} = "wifi" ] && config_set "$1" phy "$1"
|
||||||
config_get phy "$1" phy
|
config_get phy "$1" phy
|
||||||
[ -z "$phy" ] && {
|
[ -z "$phy" ] && {
|
||||||
@ -429,7 +429,7 @@ detect_atheros() {
|
|||||||
[ -d ath ] || return
|
[ -d ath ] || return
|
||||||
for dev in $(ls -d wifi* 2>&-); do
|
for dev in $(ls -d wifi* 2>&-); do
|
||||||
found=0
|
found=0
|
||||||
config_foreach check_device wifi-device
|
config_foreach check_atheros_device wifi-device
|
||||||
[ "$found" -gt 0 ] && continue
|
[ "$found" -gt 0 ] && continue
|
||||||
|
|
||||||
devname="$(cat /proc/sys/dev/$dev/dev_name)"
|
devname="$(cat /proc/sys/dev/$dev/dev_name)"
|
||||||
|
Loading…
Reference in New Issue
Block a user