Skip to content

Commit

Permalink
wifimanager: use asyncCall to avoid timeout when adding connections (#…
Browse files Browse the repository at this point in the history
…34273)

* use asyncCall to avoid timeout when adding Wi-Fi connections

* use async call for addTetheringConnection

* only this change

---------

Co-authored-by: Shane Smiskol <[email protected]>
  • Loading branch information
deanlee and sshane authored Dec 17, 2024
1 parent 8571336 commit d40fd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/ui/qt/network/wifi_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void WifiManager::connect(const Network &n, const bool is_hidden, const QString
connection["ipv4"]["dns-priority"] = 600;
connection["ipv6"]["method"] = "ignore";

call(NM_DBUS_PATH_SETTINGS, NM_DBUS_INTERFACE_SETTINGS, "AddConnection", QVariant::fromValue(connection));
asyncCall(NM_DBUS_PATH_SETTINGS, NM_DBUS_INTERFACE_SETTINGS, "AddConnection", QVariant::fromValue(connection));
}

void WifiManager::deactivateConnectionBySsid(const QString &ssid) {
Expand Down

0 comments on commit d40fd19

Please sign in to comment.