Small doubt about wpa supplicant.

Dan Williams dcbw at redhat.com
Thu Dec 6 05:58:01 EST 2007


On Thu, 2007-12-06 at 12:54 +0530, Raghavendra. S wrote:
> Hi All,
>  
>  I am newbie to wireless. So only this silly question comes from
> me...:) 
>  
>  I am using wpa supplicant. Now on our device. we have some WLAN code
> which does scanning..association ..etc all those basic wireless events
> and then it call dhcp client to get IP.
>  
>    Now they asked me to integrate wpa supplicant to provide security.
> I saw even wpa supplicant does scanning, association....authentication
> and then connects. In short wpa supplicant is a binary with config
> file....which establishes secure channel.
>  
> My question is if I integrate wpa supplicant I guess I dont need
> previous code which does scanning..association...etc. I can directly
> invoke wpa supplicant and then use dhcp client to get IP. Am I
> correct?

That is correct.  Get rid of your own scanning and association code.
Create the right config file for wpa_supplicant, let it do it's job, and
then when it's connected you do the DHCP manually.

Dan






More information about the HostAP mailing list