aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-03 18:35:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-03 18:35:31 +0000
commit480e0110b78b3a807b70b94958b7d00911e2946f (patch)
tree9b47d0e2b60f1a06871f19f2edfbf2b1cfdfca12 /package
parente54f80b979f00b1acfb58e2c6d07f87c1ec1bbae (diff)
downloadmaster-187ad058-480e0110b78b3a807b70b94958b7d00911e2946f.tar.gz
master-187ad058-480e0110b78b3a807b70b94958b7d00911e2946f.tar.bz2
master-187ad058-480e0110b78b3a807b70b94958b7d00911e2946f.zip
mac80211: rename autogenerated wifi-device sections from wifi* to radio* to prevent conflicts with madwifi interface naming
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18627 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index bc6cc1449a..7a3ed9a682 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -289,7 +289,7 @@ detect_mac80211() {
devidx=0
config_load wireless
while :; do
- config_get type "wifi$devidx" type
+ config_get type "radio$devidx" type
[ -n "$type" ] || break
devidx=$(($devidx + 1))
done
@@ -318,7 +318,7 @@ detect_mac80211() {
iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }
cat <<EOF
-config wifi-device wifi$devidx
+config wifi-device radio$devidx
option type mac80211
option channel ${channel}
option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)
@@ -328,7 +328,7 @@ config wifi-device wifi$devidx
$ht_capab
config wifi-iface
- option device wifi$devidx
+ option device radio$devidx
option network lan
option mode ap
option ssid OpenWrt