ui/network: update known connections after adding tethering connection. (#32166)

update known connections
old-commit-hash: 40b061cd51
pull/32199/head
Dean Lee 1 year ago committed by GitHub
parent 104d78cbd0
commit 164ae65250
  1. 5
      selfdrive/ui/qt/network/wifi_manager.cc

@ -428,7 +428,10 @@ void WifiManager::addTetheringConnection() {
connection["ipv4"]["route-metric"] = 1100; connection["ipv4"]["route-metric"] = 1100;
connection["ipv6"]["method"] = "ignore"; connection["ipv6"]["method"] = "ignore";
call(NM_DBUS_PATH_SETTINGS, NM_DBUS_INTERFACE_SETTINGS, "AddConnection", QVariant::fromValue(connection)); auto path = call<QDBusObjectPath>(NM_DBUS_PATH_SETTINGS, NM_DBUS_INTERFACE_SETTINGS, "AddConnection", QVariant::fromValue(connection));
if (!path.path().isEmpty()) {
knownConnections[path] = tethering_ssid;
}
} }
void WifiManager::tetheringActivated(QDBusPendingCallWatcher *call) { void WifiManager::tetheringActivated(QDBusPendingCallWatcher *call) {

Loading…
Cancel
Save