aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-04-04 08:52:03 (GMT)
committerJouni Malinen <j@w1.fi>2015-04-04 08:52:03 (GMT)
commit954f03aab2e058fbabed07c8390d0c236a216e08 (patch)
treef1f0a7270d22cf11150f23c48c3eb8b35633bf63 /wpa_supplicant/config.c
parent138bf11852aaf0ab240b46e88cf57c780a147a3e (diff)
downloadhostap-954f03aab2e058fbabed07c8390d0c236a216e08.zip
hostap-954f03aab2e058fbabed07c8390d0c236a216e08.tar.gz
hostap-954f03aab2e058fbabed07c8390d0c236a216e08.tar.bz2
Fix compilation issues with CONFIG_NO_CONFIG_WRITE=y
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index c690542..fb539cc 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -1296,6 +1296,7 @@ static int wpa_config_parse_eap(const struct parse_data *data,
}
+#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_eap(const struct parse_data *data,
struct wpa_ssid *ssid)
{
@@ -1329,6 +1330,7 @@ static char * wpa_config_write_eap(const struct parse_data *data,
return buf;
}
+#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_password(const struct parse_data *data,
@@ -1411,6 +1413,7 @@ static int wpa_config_parse_password(const struct parse_data *data,
}
+#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_password(const struct parse_data *data,
struct wpa_ssid *ssid)
{
@@ -1444,6 +1447,7 @@ static char * wpa_config_write_password(const struct parse_data *data,
return buf;
}
+#endif /* NO_CONFIG_WRITE */
#endif /* IEEE8021X_EAPOL */
@@ -2517,6 +2521,9 @@ int wpa_config_set_quoted(struct wpa_ssid *ssid, const char *var,
*/
char ** wpa_config_get_all(struct wpa_ssid *ssid, int get_keys)
{
+#ifdef NO_CONFIG_WRITE
+ return NULL;
+#else /* NO_CONFIG_WRITE */
const struct parse_data *field;
char *key, *value;
size_t i;
@@ -2562,6 +2569,7 @@ err:
os_free(value++);
os_free(props);
return NULL;
+#endif /* NO_CONFIG_WRITE */
}