mac80211: rename autogenerated wifi-device sections from wifi* to radio* to prevent...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Dec 2009 18:35:31 +0000 (18:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Dec 2009 18:35:31 +0000 (18:35 +0000)
SVN-Revision: 18627

package/mac80211/files/lib/wifi/mac80211.sh

index bc6cc1449a441385292767033e95fafdb7ee6b63..7a3ed9a6821a80f0332487fb2f58d6f16e319fc8 100644 (file)
@@ -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