1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-02-25 19:47:56 +02:00

mac80211: fix detection of multiple mac80211 devices

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18583 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2009-11-28 18:00:59 +00:00
parent 0da4b7c208
commit f1db6935ae
2 changed files with 7 additions and 6 deletions

View File

@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mac80211 PKG_NAME:=mac80211
PKG_VERSION:=2009-11-21 PKG_VERSION:=2009-11-21
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:= \
http://www.orbit-lab.org/kernel/compat-wireless-2.6/2009/11 \ http://www.orbit-lab.org/kernel/compat-wireless-2.6/2009/11 \
http://wireless.kernel.org/download/compat-wireless-2.6 http://wireless.kernel.org/download/compat-wireless-2.6

View File

@ -288,16 +288,16 @@ check_device() {
detect_mac80211() { detect_mac80211() {
devidx=0 devidx=0
config_load wireless config_load wireless
for dev in $(ls /sys/class/ieee80211); do
found=0
config_foreach check_device wifi-device
[ "$found" -gt 0 ] && continue
while :; do while :; do
config_get type "wifi$devidx" type config_get type "wifi$devidx" type
[ -n "$type" ] || break [ -n "$type" ] || break
devidx=$(($devidx + 1)) devidx=$(($devidx + 1))
done done
for dev in $(ls /sys/class/ieee80211); do
found=0
config_foreach check_device wifi-device
[ "$found" -gt 0 ] && continue
mode_11n="" mode_11n=""
mode_band="g" mode_band="g"
channel="5" channel="5"
@ -335,6 +335,7 @@ config wifi-iface
option encryption none option encryption none
EOF EOF
devidx=$(($devidx + 1))
done done
} }