#580 close all channels on standby modems on connect

This commit is contained in:
Mikayla Fischler
2025-11-09 15:44:57 -05:00
parent 82aff3b30b
commit 2b015759fd
4 changed files with 16 additions and 4 deletions

View File

@@ -295,13 +295,13 @@ function backplane.attach(type, device, iface)
end
elseif wl_nic and m_is_wl then
-- the wireless NIC already has a modem
device.closeAll()
log_sys("standby wireless modem connected")
log.info("BKPLN: standby wireless modem connected")
elseif wd_nic and wd_nic.is_modem(device) then
-- wired, but not active
log_sys("standby wired modem disconnected")
log.info("BKPLN: standby wired modem disconnected")
else
device.closeAll()
log_sys("unassigned modem connected")
log.warning("BKPLN: unassigned modem connected")
end

View File

@@ -209,9 +209,13 @@ function backplane.attach(iface, type, device, print_no_fp)
end
elseif wl_nic and m_is_wl then
-- the wireless NIC already has a modem
device.closeAll()
print_no_fp("standby wireless modem connected")
log.info("BKPLN: standby wireless modem connected")
else
device.closeAll()
print_no_fp("unassigned modem connected")
log.warning("BKPLN: unassigned modem connected")
end

View File

@@ -157,9 +157,13 @@ function backplane.attach(type, device, iface, print_no_fp)
end
elseif wl_nic and m_is_wl then
-- the wireless NIC already has a modem
device.closeAll()
print_no_fp("standby wireless modem connected")
log.info("BKPLN: standby wireless modem connected")
else
device.closeAll()
print_no_fp("unassigned modem connected")
log.warning("BKPLN: unassigned modem connected")
end

View File

@@ -111,9 +111,13 @@ function backplane.attach(iface, type, device, print_no_fp)
databus.tx_hw_wl_modem(true)
elseif _bp.wl_nic and m_is_wl then
-- the wireless NIC already has a modem
device.closeAll()
print_no_fp("standby wireless modem connected")
log.info("BKPLN: standby wireless modem connected")
else
device.closeAll()
print_no_fp("unassigned modem connected")
log.warning("BKPLN: unassigned modem connected")
end