New D-Bus API and Config File

Jouni Malinen j
Tue Jan 5 11:45:25 PST 2010

On Tue, Jan 05, 2010 at 01:28:04PM -0500, Phillip Nixon wrote:

> I am implementing a gui applet (similiar in wireless functionality to
> Network Manager) using the new D-Bus API. I would like to be able to have a
> user enter a PSK for a new network, and then write that network block into
> wpa_supplicant's configuration file. Are any plans to allow the D-Bus API to
> do that?

I haven't tested this, but I would assume that it almost works already,
i.e., add update_config=1 to the configuration file and start
wpa_supplicant with -u and -c options on the command line. The "almost"
there is because of one function call potentially missing
(wpa_config_write() to be called if wpa_s->conf->update_config is set).
It should be fine to add this into the D-Bus code at the place where a
new network is added. It wouldn't change the behavior for existing
clients (i.e., you do need to use a config file with update_config=1 to
be able to use this).

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list