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:
parent
bb2ea8e5e3
commit
17ba51b14d
1 changed files with 1 additions and 1 deletions
|
@ -5219,7 +5219,7 @@ static int nl80211_tx_control_port(void *priv, const u8 *dest,
|
|||
if (ret)
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"nl80211: tx_control_port failed: ret=%d (%s)",
|
||||
ret, strerror(ret));
|
||||
ret, strerror(-ret));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue