Initiating supplicant connections
Dan Williams
dcbw at redhat.com
Wed Feb 10 07:12:53 PST 2016
On Wed, 2016-02-10 at 14:12 +0200, khali singh wrote:
> Hi Jouni and team
>
> It would be great if one of you could answer this.
>
> Is there a way for an EAP method to register an event? This event
> should trigger after x number of seconds and make the supplicant try
> connection with a particular SSID/BSSID again.
That actually seems like a pretty big layering violation (though
eap_wsc.c is somewhat guilty of this). Why is the EAP method involved
in SSID selection? EAP methods are usually just authentication code
run after the SSID/BSSID has already been selected, associated with,
and that specific EAP method has been negotiated via 802.1x.
Though I have no idea what you're actually trying to do, it seems like
what you want is to tell the supplicant to clear the blacklist after an
EAP failure, so that it will retry the connection to the SSID/BSSID and
your EAP method will run again. That can be accomplished through
wpa_cli, the D-Bus interface, or the other control interfaces.
Could you describe a bit more what needs to happen, and then perhaps we
can figure out a cleaner way of doing that?
Dan
> I could update the .conf file from the eap method to specify which
> SSID/BSSID should be used the next time, but how can the EAP method
> provide hints to the remaining supplicant software what and when
> should it do next.
>
> Pardon me if my questions are (a bit) stupid. But it would be great
> help if you could tell me the relevant supplicant files that I should
> look at; to understand how and when does the supplicant try
> connecting
> again.
>
> I don't want the userspace application to kill and start
> wpa_supplicant every time. Instead the user should just start it once
> and let the supplicant do its magic.
>
> Thanks
>
> On Sun, Feb 7, 2016 at 12:02 PM, khali singh <khali3620 at gmail.com>
> wrote:
> > Hi team
> >
> > Is there a way for an EAP method to register an event? This event
> > should trigger after x number of seconds and make the supplicant
> > try
> > connection with a particular SSID/BSSID again.
> >
> > I could update the .conf file from the eap method to specify which
> > SSID/BSSID should be used the next time, but how can the EAP method
> > provide hints to the remaining supplicant software what and when
> > should it do next.
> >
> > Pardon me if my questions are (a bit) stupid. But it would be great
> > help if you could tell me the relevant supplicant files that I
> > should
> > look at; to understand how and when does the supplicant try
> > connecting
> > again.
> >
> > I don't want the userspace application to kill and start
> > wpa_supplicant every time. Instead the user should just start it
> > once
> > and let the supplicant do its magic.
> >
> > Thanks
> > Khali Singh
>
> _______________________________________________
> Hostap mailing list
> Hostap at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/hostap
More information about the Hostap
mailing list