From 9556ad77fb7b17f5c41fb95afb83caff7b8e41c6 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 2 Feb 2018 08:09:08 +0800 Subject: [PATCH] esp32: bump ssid and pw fields to 64 --- lib/libwebsockets.h | 6 +++--- lib/plat/lws-plat-esp32.c | 2 ++ plugins/protocol_esp32_lws_scan.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 2360e040..47163e50 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -565,9 +565,9 @@ struct lws_esp32 { char model[16]; char group[16]; char role[16]; - char ssid[4][16]; - char password[4][32]; - char active_ssid[32]; + char ssid[4][64]; + char password[4][64]; + char active_ssid[64]; char access_pw[16]; char hostname[32]; char mac[20]; diff --git a/lib/plat/lws-plat-esp32.c b/lib/plat/lws-plat-esp32.c index 4e96d5f0..5e5c8d08 100644 --- a/lib/plat/lws-plat-esp32.c +++ b/lib/plat/lws-plat-esp32.c @@ -715,7 +715,9 @@ static TimerHandle_t leds_timer, scan_timer, debounce_timer, association_timer #endif ; static enum lws_gapss gapss = LWS_GAPSS_INITIAL; +#if !defined(CONFIG_LWS_IS_FACTORY_APPLICATION) static mdns_result_t *mdns_results_head; +#endif #define GPIO_SW 14 diff --git a/plugins/protocol_esp32_lws_scan.c b/plugins/protocol_esp32_lws_scan.c index 7537bd66..1ec66253 100644 --- a/plugins/protocol_esp32_lws_scan.c +++ b/plugins/protocol_esp32_lws_scan.c @@ -674,7 +674,7 @@ callback_esplws_scan(struct lws *wsi, enum lws_callback_reasons reason, } for (m = 0; m < 4; m++) { - char name[10], ssid[32]; + char name[10], ssid[65]; unsigned int pp = 0, use = 0; if (m)