nl80211: Fix tx_control_port error print

send_and_recv_msgs() returns a negative number as the error code and
that needs to be negated for strerror().

Fixes: 8759e9116a ("nl80211: Control port over nl80211 helpers")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2020-03-08 16:38:57 +02:00
parent bb2ea8e5e3
commit 17ba51b14d

View file

@ -5219,7 +5219,7 @@ static int nl80211_tx_control_port(void *priv, const u8 *dest,
if (ret) if (ret)
wpa_printf(MSG_DEBUG, wpa_printf(MSG_DEBUG,
"nl80211: tx_control_port failed: ret=%d (%s)", "nl80211: tx_control_port failed: ret=%d (%s)",
ret, strerror(ret)); ret, strerror(-ret));
return ret; return ret;
} }