projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5373c18
)
Save config after blob updates from EAP (if update_config=1)
author
Jouni Malinen
<jouni.malinen@atheros.com>
Thu, 2 Oct 2008 11:10:53 +0000
(14:10 +0300)
committer
Jouni Malinen
<j@w1.fi>
Thu, 2 Oct 2008 11:10:53 +0000
(14:10 +0300)
This allows EAP-FAST PAC updates to be stored when using config blobs
instead of external files.
wpa_supplicant/wpas_glue.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpas_glue.c
b/wpa_supplicant/wpas_glue.c
index
cbe2381
..
7a74189
100644
(file)
--- a/
wpa_supplicant/wpas_glue.c
+++ b/
wpa_supplicant/wpas_glue.c
@@
-36,6
+36,13
@@
static void wpa_supplicant_set_config_blob(void *ctx,
{
struct wpa_supplicant *wpa_s = ctx;
wpa_config_set_blob(wpa_s->conf, blob);
+ if (wpa_s->conf->update_config) {
+ int ret = wpa_config_write(wpa_s->confname, wpa_s->conf);
+ if (ret) {
+ wpa_printf(MSG_DEBUG, "Failed to update config after "
+ "blob set");
+ }
+ }
}