dbus: Add D-Bus signal for PSK mismatch heuristics
As a workup action during disassociation, wpa_supplicant checks if the disconnection could have been caused by PSK mismatch during WPA 4-way handshake with function could_be_psk_mismatch() in event.c. A MSG_INFO message will be sent on the control interface when there could be a PSK mismatch, and this heuristic can be useful to indicate if the disconnection is caused by a wrong passphrase provided by the user. Here, propagate a new D-Bus signal 'PskMismatch' to notify other applicantions. Signed-off-by: Yichen Yu <yichenyu@chromium.org>
This commit is contained in:
parent
691f729d5d
commit
a678a510fb
6 changed files with 41 additions and 0 deletions
|
@ -254,6 +254,7 @@ void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
|
|||
const u8 *ie, size_t ie_len, u32 ssi_signal);
|
||||
void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
|
||||
const char *status, const char *parameter);
|
||||
void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s);
|
||||
void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
|
||||
const u8 *sta);
|
||||
void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
|
||||
|
@ -585,6 +586,10 @@ static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
|
|||
{
|
||||
}
|
||||
|
||||
static inline void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
|
||||
const u8 *sta)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue