From 672c396c69853c237c97363a2f9cf729926e7f0c Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Sun, 20 Dec 2015 22:50:36 -0500 Subject: [PATCH] Fixed compilation error when the enduser_setup module is disabled yet requires ENDUSER_SETUP_AP_SSID to be defined. --- app/modules/enduser_setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/modules/enduser_setup.c b/app/modules/enduser_setup.c index 1e02e0a3..067c9535 100644 --- a/app/modules/enduser_setup.c +++ b/app/modules/enduser_setup.c @@ -640,6 +640,10 @@ static void enduser_setup_ap_start(void) struct softap_config cnf; c_memset(&(cnf), 0, sizeof(struct softap_config)); +#ifndef ENDUSER_SETUP_AP_SSID + #define ENDUSER_SETUP_AP_SSID "SetupGadget" +#endif + char ssid[] = ENDUSER_SETUP_AP_SSID; int ssid_name_len = c_strlen(ENDUSER_SETUP_AP_SSID); c_memcpy(&(cnf.ssid), ssid, ssid_name_len);