eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit e8888fab2edc43dcd29d0790173c5a8cb89d13d1
parent cd90097ce1063906d5bd7b1b8dabc3cc72e3070e
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 14 Sep 2020 14:04:03 -0700

adhoc: print handshake failure reason

Diffstat:
Msrc/adhoc.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/adhoc.c b/src/adhoc.c @@ -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