]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Debug prints for TDLS_OPER command and result
authorJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 15:12:24 +0000 (17:12 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 15:12:24 +0000 (17:12 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c

index 46290b84c8ea88969ff575728bd449d625c27581..2d00823198c8ef0af1a55a488c115e71251822e6 100644 (file)
@@ -7813,6 +7813,7 @@ static int nl80211_tdls_oper(void *priv, enum tdls_oper oper, const u8 *peer)
        struct wpa_driver_nl80211_data *drv = bss->drv;
        struct nl_msg *msg;
        enum nl80211_tdls_operation nl80211_oper;
+       int res;
 
        if (!(drv->capa.flags & WPA_DRIVER_FLAGS_TDLS_SUPPORT))
                return -EOPNOTSUPP;
@@ -7848,7 +7849,11 @@ static int nl80211_tdls_oper(void *priv, enum tdls_oper oper, const u8 *peer)
                return -ENOBUFS;
        }
 
-       return send_and_recv_msgs(drv, msg, NULL, NULL);
+       res = send_and_recv_msgs(drv, msg, NULL, NULL);
+       wpa_printf(MSG_DEBUG, "nl80211: TDLS_OPER: oper=%d mac=" MACSTR
+                  " --> res=%d (%s)", nl80211_oper, MAC2STR(peer), res,
+                  strerror(-res));
+       return res;
 }