mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-09 22:27:28 +03:00
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
This commit is contained in:
parent
c034853550
commit
eac6d3750b
@ -289,7 +289,7 @@ detect_mac80211() {
|
|||||||
devidx=0
|
devidx=0
|
||||||
config_load wireless
|
config_load wireless
|
||||||
while :; do
|
while :; do
|
||||||
config_get type "wifi$devidx" type
|
config_get type "radio$devidx" type
|
||||||
[ -n "$type" ] || break
|
[ -n "$type" ] || break
|
||||||
devidx=$(($devidx + 1))
|
devidx=$(($devidx + 1))
|
||||||
done
|
done
|
||||||
@ -318,7 +318,7 @@ detect_mac80211() {
|
|||||||
iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }
|
iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
config wifi-device wifi$devidx
|
config wifi-device radio$devidx
|
||||||
option type mac80211
|
option type mac80211
|
||||||
option channel ${channel}
|
option channel ${channel}
|
||||||
option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)
|
option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)
|
||||||
@ -328,7 +328,7 @@ config wifi-device wifi$devidx
|
|||||||
$ht_capab
|
$ht_capab
|
||||||
|
|
||||||
config wifi-iface
|
config wifi-iface
|
||||||
option device wifi$devidx
|
option device radio$devidx
|
||||||
option network lan
|
option network lan
|
||||||
option mode ap
|
option mode ap
|
||||||
option ssid OpenWrt
|
option ssid OpenWrt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user