Dbus api for incorrect password
Matthew Stanger
matthew_stanger at trimble.com
Mon Mar 20 14:48:16 PDT 2017
Thanks Dan,
That helps a lot!
On Mon, Mar 20, 2017 at 3:14 PM, Dan Williams <dcbw at redhat.com> wrote:
> On Mon, 2017-03-20 at 14:15 -0600, Matthew Stanger wrote:
>> Hi,
>>
>> Is there a simple way in wpa_supplicant to check via dbus if a
>> connection has failed due to a bad psk?
>
> There isn't a great way to know anyway, and the supplicant is just
> guessing when it says that in the logs. You can however watch the
> "State" property and if the connection fails in the 4 Way Handshake
> state you can usually assume authentication (802.1x, PSK, etc) failed.
> You will also get a DisconnectReason property change that you can
> additionally use to filter the disconnect, see could_be_psk_mismatch()
> in wpa_supplicant/events.c.
>
> Dan
More information about the Hostap
mailing list