From f1e1b0a0ecd9995f152f58eda8cdaee1d3a387a2 Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Sun, 2 Jun 2019 00:18:00 -0400 Subject: [PATCH] Detect toyota connected car wifi as a hotspot and not a normal home wifi network. old-commit-hash: c0a3e48d9413710db8d6181183117b8caf5c05f2 --- selfdrive/loggerd/uploader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/loggerd/uploader.py b/selfdrive/loggerd/uploader.py index 451b0b4120..d65a2d5613 100644 --- a/selfdrive/loggerd/uploader.py +++ b/selfdrive/loggerd/uploader.py @@ -86,7 +86,9 @@ def is_on_hotspot(): is_android = result.startswith('192.168.43.') is_ios = result.startswith('172.20.10.') - return (is_android or is_ios) + is_entune = result.startswith('10.0.2.') + + return (is_android or is_ios or is_entune) except: return False