diff options
| author | Your Name <you@example.com> | 2026-05-19 02:44:17 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 02:44:17 +0530 |
| commit | 2ad2ed45f3ca82b1244a8b9e3e5efa89502413a9 (patch) | |
| tree | 0f423dce2c22f8483b0c9f3c1bb642bf9ea5b01b /main/config.h | |
| parent | a09be62cfab9a1d7f37c697c44c71aed70536e8c (diff) | |
feat: WPA auto-detect, STA connectivity fix, lwip crash fix
- Add wifi_auth_mode config field (WPA2/WPA3) parsed from config.json
- Default to WPA2 (accepts both WPA2 and WPA3 networks)
- Replace hardcoded WIFI_AUTH_WPA3_PSK with runtime threshold mapping
- Reduce MINT_HEALTH_PROBE_INTERVAL_S from 300 to 30 for testing
- Add 3s delay before service start + 5s DNS stabilization for health probes
- Fixes lwip mem_free crash caused by concurrent HTTP at boot
Verified on hardware:
- STA connects to WPA2 home router (Got IP:192.168.2.16)
- All 4 mint health probes complete successfully
- API endpoints return correct data with reachable mint filtering
- 4/4 wallets initialized with real keysets from live mints
Diffstat (limited to 'main/config.h')
| -rw-r--r-- | main/config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/config.h b/main/config.h index 8e12878..1a32cc2 100644 --- a/main/config.h +++ b/main/config.h | |||
| @@ -65,6 +65,8 @@ typedef struct { | |||
| 65 | 65 | ||
| 66 | bool cvm_enabled; | 66 | bool cvm_enabled; |
| 67 | char cvm_relays[256]; | 67 | char cvm_relays[256]; |
| 68 | |||
| 69 | char wifi_auth_mode[16]; | ||
| 68 | } tollgate_config_t; | 70 | } tollgate_config_t; |
| 69 | 71 | ||
| 70 | void tollgate_config_derive_unique(tollgate_config_t *cfg); | 72 | void tollgate_config_derive_unique(tollgate_config_t *cfg); |