1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "includes.h"
- #include "common.h"
- #include "config.h"
- #include "base64.h"
- struct wpa_config * wpa_config_read(const char *name, struct wpa_config *cfgp)
- {
- struct wpa_config *config;
- if (name == NULL)
- return NULL;
- if (cfgp)
- config = cfgp;
- else
- config = wpa_config_alloc_empty(NULL, NULL);
- if (config == NULL)
- return NULL;
-
- return config;
- }
- int wpa_config_write(const char *name, struct wpa_config *config)
- {
- struct wpa_ssid *ssid;
- struct wpa_config_blob *blob;
- wpa_printf(MSG_DEBUG, "Writing configuration file '%s'", name);
-
- for (ssid = config->ssid; ssid; ssid = ssid->next) {
-
- }
- for (blob = config->blobs; blob; blob = blob->next) {
-
- }
- return 0;
- }
|