nl80211: Print a debug log entry on NL80211_CMD_PROBE_CLIENT failures
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
380f3a8ba1
commit
fc99fab7e5
1 changed files with 7 additions and 1 deletions
|
@ -6924,6 +6924,7 @@ static void nl80211_poll_client(void *priv, const u8 *own_addr, const u8 *addr,
|
|||
struct i802_bss *bss = priv;
|
||||
struct wpa_driver_nl80211_data *drv = bss->drv;
|
||||
struct nl_msg *msg;
|
||||
int ret;
|
||||
|
||||
if (!drv->poll_command_supported) {
|
||||
nl80211_send_null_frame(bss, own_addr, addr, qos);
|
||||
|
@ -6936,7 +6937,12 @@ static void nl80211_poll_client(void *priv, const u8 *own_addr, const u8 *addr,
|
|||
return;
|
||||
}
|
||||
|
||||
send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||
if (ret < 0) {
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Client probe request for "
|
||||
MACSTR " failed: ret=%d (%s)",
|
||||
MAC2STR(addr), ret, strerror(-ret));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue