Skip to content

Commit

Permalink
Fix lease renewal ending in stuck lan connectivity
Browse files Browse the repository at this point in the history
When the lease would renew the connectivity goes from `:internet` to
`:lan` due to the UDHPC code in `VintageNet`. This change will account
for when `VintageNet` changes the connection to `:lan` and will force
the connection to either be `:disconnected` or `:internet` based off the
QMI connectivity requirements.
  • Loading branch information
mattludwigs authored and fhunleth committed Jun 30, 2021
1 parent f555f3a commit b434528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vintage_net_qmi/connectivity.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ defmodule VintageNetQMI.Connectivity do

@impl GenServer
def handle_info(
{VintageNet, ["interface", ifname, "connection"], :disconnected, :lan, _meta},
{VintageNet, ["interface", ifname, "connection"], _, :lan, _meta},
%{ifname: ifname} = state
) do
new_state =
Expand Down

0 comments on commit b434528

Please sign in to comment.