upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/config.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-19 03:14:53 +0530
committerYour Name <you@example.com>2026-05-19 03:14:53 +0530
commit08d7df158acf92399acdbb8a527620a6b1a94f16 (patch)
tree2a9f2b5b585b5a8bb21287420520ad1065f988e3 /main/config.h
parentd9ce038191ff2262356f67147553048357040701 (diff)
feat: WPA auto-detect from SPIFFS config.json
Parse wifi_auth_mode from config.json to set STA auth threshold. Defaults to WPA2-PSK (fixes reason=211 with WPA2-only routers). SPIFFS generated by Makefile auto-detects WPA2/WPA3 from host scan. Root cause: config.c hardcoded WIFI_AUTH_WPA3_PSK threshold, making WPA2-only APs invisible during ESP32 scan (reason=211 NO_AP_FOUND). With this fix, STA connects to WPA2 upstream and Cashu payment verification works end-to-end.
Diffstat (limited to 'main/config.h')
-rw-r--r--main/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/config.h b/main/config.h
index b8a3136..173019b 100644
--- a/main/config.h
+++ b/main/config.h
@@ -62,6 +62,8 @@ typedef struct {
62 62
63 payout_config_t payout; 63 payout_config_t payout;
64 64
65 wifi_auth_mode_t wifi_auth_threshold;
66
65 bool cvm_enabled; 67 bool cvm_enabled;
66 char cvm_relays[256]; 68 char cvm_relays[256];
67} tollgate_config_t; 69} tollgate_config_t;