tici: toggle wwan when stuck registered

old-commit-hash: 38380612d5372b8e4949a50d3c7db9da840eea32
This commit is contained in:
Willem Melching
2021-06-23 12:40:21 +02:00
parent af6d31218b
commit 1966c6d908
+4
View File
@@ -245,6 +245,10 @@ def thermald_thread():
if registered_count > 10:
cloudlog.warning(f"Modem stuck in registered state {network_info}")
os.system("nmcli radio wwan off")
os.system("nmcli radio wwan on")
registered_count = 0
except Exception:
cloudlog.exception("Error getting network status")