Using wpa_ctrl.h in a external programm
Grant Erickson
marathon96
Wed Jul 27 09:17:49 PDT 2011
On 7/27/11 5:14 AM, Guy Morand wrote:
> I'm playing with wpa_supplicant to configure my wireless network on my
> embedded device. I'd like to configure my wireless network from a web
> interface
> so I wrote a little daemon to make the communication between my web server
> and wpa_supplicant working.
>
> At the moment I'm using wpa_cli that is working great. However, I'd like to
> avoid a lot of layer and use directly the wpa_ctrl.h interface inside my
> program
> as wpa_cli does and I dislike calling shell program inside C code (system(),
> popen(), ...)
>
> The problem that wpa_supplicant doesn't seem to share its header files
> (usr/includes/) and this is pretty annoying for the compilation... Moreover,
> I'd like to have some static/shared libraries to use with my little daemon,
> something like "libwpa_ctrl.a/so".
>
> Is there any way to generate some shared libraries at the current stage
> of development? Or am I going into the wrong direction ? Is there any
> better way to do it?
>
> Any pointers would be appreciated!
Guy:
I'd warmly recommend looking into the supplicant's support for interacting
with it over DBus.
Best,
Grant
More information about the Hostap
mailing list