Re: Dbus api for incorrect password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux