Skip to content

Commit

Permalink
wifiManager: fix for lteConnectionPath not set on boot (commaai#30517)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Newberry <justin@comma.ai>
  • Loading branch information
andiradulescu and jnewb1 authored Dec 17, 2023
1 parent 2c30421 commit b75cdd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/ui/qt/network/wifi_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ WifiManager::WifiManager(QObject *parent) : QObject(parent) {
}

timer.callOnTimeout(this, &WifiManager::requestScan);

initConnections();
}

void WifiManager::setup() {
Expand All @@ -72,7 +74,6 @@ void WifiManager::setup() {
raw_adapter_state = call<uint>(adapter, NM_DBUS_INTERFACE_PROPERTIES, "Get", NM_DBUS_INTERFACE_DEVICE, "State");
activeAp = call<QDBusObjectPath>(adapter, NM_DBUS_INTERFACE_PROPERTIES, "Get", NM_DBUS_INTERFACE_DEVICE_WIRELESS, "ActiveAccessPoint").path();

initConnections();
requestScan();
}

Expand Down

0 comments on commit b75cdd1

Please sign in to comment.