Configuring wpa_supplicant to only scan, not connect?

Dmitry Shmidt dimitrysh
Thu Sep 9 10:17:52 PDT 2010


Hello,

You can probably provide "strange" SSID so you will never hit association, like:
network={
  ssid=_1_2_3_4_
  key_mgmt=NONE
}


On Wed, Sep 8, 2010 at 5:25 PM, JoSH Lehan <krellan at gmail.com> wrote:
> Hello there.
>
> I've had good success running wpa_supplicant, it gets on the air and
> associates nicely.
>
> However, there's a situation I'd like to do: scan *only*, without
> connecting to anything.
>
> Basically, I want to run wpa_supplicant and gather scan results from
> it with wpa_cli.
>
> This works fine, now, with this minimal configuration file that sets
> it wide-open, and connects to the first wide-open AP that it sees:
>
> network={
> key_mgmt=NONE
> }
>
> However, it has the unwanted side effect of making an association, if
> an unsecured AP is within range.
>
> Is there a better way to configure it to scan only, and not to attempt
> any connections? ?I could fake up a random SSID/key that would never
> succeed, but that might have other unwanted side effects.
>
> Thanks!
>
> Josh
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>



More information about the Hostap mailing list