Developing lightweight computation at the DSG edge

Commit 6c5212f1 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix viface for 2.4 GHz 80211s_aplan radios

Continues b45499e1


Still, for some devices, wlan0 is not considered to be a wifi
device. Add an additional check for that.
Signed-off-by: default avatarRoger Pueyo Centelles <>
parent b45499e1
......@@ -307,9 +307,11 @@ qmp_configure_lan() {
local device
for device in $(qmp_get_devices lan) ; do
echo " -> LAN device $device"
qmp_log "Current wifi devices:"
qmp_log $(qmp_get_wifi_devices)
if qmp_is_in "$device" $(qmp_get_wifi_devices) || [ -e "/sys/class/net/$device/phy80211" ] ; then
# Do not attach to br-lan wireless devices, they do it themselves
# somewhere else via /etc/config/wireless
if qmp_is_in "$device" $(qmp_get_wifi_devices); then
echo " -> Wireless device $device is attached automatically"
echo " -> Attaching device $device to br-lan"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment