3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

adhoc: print handshake failure reason

This commit is contained in:
James Prestwood 2020-09-14 14:04:03 -07:00 committed by Denis Kenzior
parent cd90097ce1
commit e8888fab2e

View File

@ -179,10 +179,15 @@ static void adhoc_handshake_event(struct handshake_state *hs,
{
struct sta_state *sta = user_data;
struct adhoc_state *adhoc = sta->adhoc;
va_list args;
va_start(args, user_data);
switch (event) {
case HANDSHAKE_EVENT_FAILED:
l_error("handshake failed with STA "MAC, MAC_STR(sta->addr));
l_error("handshake failed with STA "MAC" (%d)",
MAC_STR(sta->addr),
va_arg(args, int));
/*
* eapol frees the state machines upon handshake failure. Since