#580 close all channels on standby modems on connect
This commit is contained in:
@@ -295,13 +295,13 @@ function backplane.attach(type, device, iface)
|
|||||||
end
|
end
|
||||||
elseif wl_nic and m_is_wl then
|
elseif wl_nic and m_is_wl then
|
||||||
-- the wireless NIC already has a modem
|
-- the wireless NIC already has a modem
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
log_sys("standby wireless modem connected")
|
log_sys("standby wireless modem connected")
|
||||||
log.info("BKPLN: 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
|
else
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
log_sys("unassigned modem connected")
|
log_sys("unassigned modem connected")
|
||||||
log.warning("BKPLN: unassigned modem connected")
|
log.warning("BKPLN: unassigned modem connected")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -209,9 +209,13 @@ function backplane.attach(iface, type, device, print_no_fp)
|
|||||||
end
|
end
|
||||||
elseif wl_nic and m_is_wl then
|
elseif wl_nic and m_is_wl then
|
||||||
-- the wireless NIC already has a modem
|
-- the wireless NIC already has a modem
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
print_no_fp("standby wireless modem connected")
|
print_no_fp("standby wireless modem connected")
|
||||||
log.info("BKPLN: standby wireless modem connected")
|
log.info("BKPLN: standby wireless modem connected")
|
||||||
else
|
else
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
print_no_fp("unassigned modem connected")
|
print_no_fp("unassigned modem connected")
|
||||||
log.warning("BKPLN: unassigned modem connected")
|
log.warning("BKPLN: unassigned modem connected")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -157,9 +157,13 @@ function backplane.attach(type, device, iface, print_no_fp)
|
|||||||
end
|
end
|
||||||
elseif wl_nic and m_is_wl then
|
elseif wl_nic and m_is_wl then
|
||||||
-- the wireless NIC already has a modem
|
-- the wireless NIC already has a modem
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
print_no_fp("standby wireless modem connected")
|
print_no_fp("standby wireless modem connected")
|
||||||
log.info("BKPLN: standby wireless modem connected")
|
log.info("BKPLN: standby wireless modem connected")
|
||||||
else
|
else
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
print_no_fp("unassigned modem connected")
|
print_no_fp("unassigned modem connected")
|
||||||
log.warning("BKPLN: unassigned modem connected")
|
log.warning("BKPLN: unassigned modem connected")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -111,9 +111,13 @@ function backplane.attach(iface, type, device, print_no_fp)
|
|||||||
databus.tx_hw_wl_modem(true)
|
databus.tx_hw_wl_modem(true)
|
||||||
elseif _bp.wl_nic and m_is_wl then
|
elseif _bp.wl_nic and m_is_wl then
|
||||||
-- the wireless NIC already has a modem
|
-- the wireless NIC already has a modem
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
print_no_fp("standby wireless modem connected")
|
print_no_fp("standby wireless modem connected")
|
||||||
log.info("BKPLN: standby wireless modem connected")
|
log.info("BKPLN: standby wireless modem connected")
|
||||||
else
|
else
|
||||||
|
device.closeAll()
|
||||||
|
|
||||||
print_no_fp("unassigned modem connected")
|
print_no_fp("unassigned modem connected")
|
||||||
log.warning("BKPLN: unassigned modem connected")
|
log.warning("BKPLN: unassigned modem connected")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user