mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
madwifi: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28199
This commit is contained in:
parent
fdfa6fdbcd
commit
89e74f6aea
@ -28,12 +28,14 @@ find_atheros_phy() {
|
|||||||
scan_atheros() {
|
scan_atheros() {
|
||||||
local device="$1"
|
local device="$1"
|
||||||
local wds
|
local wds
|
||||||
local adhoc ahdemo sta ap monitor
|
local adhoc ahdemo sta ap monitor disabled
|
||||||
|
|
||||||
[ ${device%[0-9]} = "wifi" ] && config_set "$device" phy "$device"
|
[ ${device%[0-9]} = "wifi" ] && config_set "$device" phy "$device"
|
||||||
|
|
||||||
config_get vifs "$device" vifs
|
config_get vifs "$device" vifs
|
||||||
for vif in $vifs; do
|
for vif in $vifs; do
|
||||||
|
config_get_bool disabled "$vif" disabled 0
|
||||||
|
[ $disabled = 0 ] || continue
|
||||||
|
|
||||||
config_get ifname "$vif" ifname
|
config_get ifname "$vif" ifname
|
||||||
config_set "$vif" ifname "${ifname:-ath}"
|
config_set "$vif" ifname "${ifname:-ath}"
|
||||||
|
Loading…
Reference in New Issue
Block a user