mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-16 09:32:09 -05:00
mac80211: Fix unique device autodetection
SVN-Revision: 26165
This commit is contained in:
parent
96bb1c7585
commit
f55fe56225
@ -477,7 +477,7 @@ enable_mac80211() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
check_device() {
|
check_mac80211_device() {
|
||||||
config_get phy "$1" phy
|
config_get phy "$1" phy
|
||||||
[ -z "$phy" ] && {
|
[ -z "$phy" ] && {
|
||||||
find_mac80211_phy "$1" >/dev/null || return 0
|
find_mac80211_phy "$1" >/dev/null || return 0
|
||||||
@ -496,7 +496,7 @@ detect_mac80211() {
|
|||||||
done
|
done
|
||||||
for dev in $(ls /sys/class/ieee80211); do
|
for dev in $(ls /sys/class/ieee80211); do
|
||||||
found=0
|
found=0
|
||||||
config_foreach check_device wifi-device
|
config_foreach check_mac80211_device wifi-device
|
||||||
[ "$found" -gt 0 ] && continue
|
[ "$found" -gt 0 ] && continue
|
||||||
|
|
||||||
mode_11n=""
|
mode_11n=""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user