fix: Recovery-Rettungsweg härten (Watchdog-Cap, Konsole, Softap-Bit, Scan-Retry)

This commit is contained in:
Michael Sauer
2026-09-12 02:38:02 +02:00
parent 8fa4af7eb5
commit 247d610fe8
5 changed files with 85 additions and 16 deletions
+7
View File
@@ -345,6 +345,13 @@ bool nl_wifi_join_blocking(const char *ssid, const char *pass, uint32_t timeout_
{
uint32_t waited = 0;
/* C2: if a stale SDK softap bit from a previous onboarding/fallback boot is still set
* in TLS_PARAM_ID_WPROTOCOL, sys_net_status_changed() (sdk/Platform/Sys/tls_sys.c)
* recreates the SDK's own default-params softap the moment this join reaches
* NETIF_IP_NET_UP - exactly the "lamp stuck in onboarding" case recovery exists for.
* Clear it once, up front, same as nl_wifi_start() does. */
clear_softap_param();
s_recovery_join_done = false;
s_recovery_join_ok = false;
tls_netif_add_status_event(recovery_join_event);