On Tue, 5 Jul 2016 13:22:40 +0200
Lars Kruse <[email protected]> wrote:
> "wifi down" would be an alternative approach for this problem
> (shutting down all wifi interfaces). But I do not want to interfere
> with the other wifi interfaces - thus this would not be an option for
> me.
>
> Can someone recommend a way to disable specific wifi interfaces
> (ideally based on the name of its logical network interface)?
Not 100% sure what you mean by "logical network interface" but maybe
you're looking for:
# wifi down radio0
Also available are:
# wifi reload <wifi-iface>
# wifi up <wifi-iface>
You could also do:
# uci set wireless.@wifi-iface[0].disabled='1'
# wifi reload
If by interface you mean eg "lan" (as in iface names
in /etc/config/network) then you need to get the mapping from "lan" to
"radio0" using (for example) something like this:
# uci show wireless.$(uci show wireless | grep lan | cut -d. -f2) |\
grep device |cut -d= -f2 to get
You can of course get the logical-network-iface > logical-wifi-iface
mapping in other ways (ubus, libiwinfo-lua, ...)
Hope this helps,
kk
--
[email protected]
5689 656A EDCA 3983 D957 DB27 6D88 0074 AB50 8E20
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users