From ce94b4bc4bf89609af4cf00a5d2aff7625b385a0 Mon Sep 17 00:00:00 2001 From: ShaneSmiskol Date: Mon, 14 Jun 2021 16:12:18 -0700 Subject: [PATCH] networking: properly set route metric for hotspot (#21265) * Add dns priority to tethering connection * it was route-metric * only ipv4 is needed old-commit-hash: 04ef4eeedae71d4af6cdc8b09f0f0aba532d9fec --- selfdrive/ui/qt/offroad/wifiManager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/ui/qt/offroad/wifiManager.cc b/selfdrive/ui/qt/offroad/wifiManager.cc index d2d93a3149..2f10ce468e 100644 --- a/selfdrive/ui/qt/offroad/wifiManager.cc +++ b/selfdrive/ui/qt/offroad/wifiManager.cc @@ -490,6 +490,7 @@ void WifiManager::addTetheringConnection() { address["prefix"] = 24u; connection["ipv4"]["address-data"] = QVariant::fromValue(IpConfig() << address); connection["ipv4"]["gateway"] = "192.168.43.1"; + connection["ipv4"]["route-metric"] = 1100; connection["ipv6"]["method"] = "ignore"; QDBusInterface nm_settings(nm_service, nm_settings_path, nm_settings_iface, bus);