mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
adhoc: print handshake failure reason
This commit is contained in:
parent
cd90097ce1
commit
e8888fab2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user