]>
git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/config_none.c
2 * WPA Supplicant / Configuration backend: empty starting point
3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
8 * This file implements dummy example of a configuration backend. None of the
9 * functions are actually implemented so this can be used as a simple
10 * compilation test or a starting point for a new configuration backend.
20 struct wpa_config
* wpa_config_read(const char *name
, struct wpa_config
*cfgp
)
22 struct wpa_config
*config
;
29 config
= wpa_config_alloc_empty(NULL
, NULL
);
32 /* TODO: fill in configuration data */
37 int wpa_config_write(const char *name
, struct wpa_config
*config
)
39 struct wpa_ssid
*ssid
;
40 struct wpa_config_blob
*blob
;
42 wpa_printf(MSG_DEBUG
, "Writing configuration file '%s'", name
);
44 /* TODO: write global config parameters */
47 for (ssid
= config
->ssid
; ssid
; ssid
= ssid
->next
) {
48 /* TODO: write networks */
51 for (blob
= config
->blobs
; blob
; blob
= blob
->next
) {
52 /* TODO: write blobs */