mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[package] madwifi: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28199 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
20cdb18e72
commit
962d18ed2b
@ -28,13 +28,15 @@ find_atheros_phy() {
|
||||
scan_atheros() {
|
||||
local device="$1"
|
||||
local wds
|
||||
local adhoc ahdemo sta ap monitor
|
||||
local adhoc ahdemo sta ap monitor disabled
|
||||
|
||||
[ ${device%[0-9]} = "wifi" ] && config_set "$device" phy "$device"
|
||||
|
||||
config_get vifs "$device" vifs
|
||||
for vif in $vifs; do
|
||||
|
||||
config_get_bool disabled "$vif" disabled 0
|
||||
[ $disabled = 0 ] || continue
|
||||
|
||||
config_get ifname "$vif" ifname
|
||||
config_set "$vif" ifname "${ifname:-ath}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user