mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
nl80211: Fix strerror() value in P2P Dev debug messages
send_and_recv_msgs() returns negative errno, so need to use -ret in the strerror() call. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
35f836375d
commit
6cb4f11dba
@ -4004,7 +4004,7 @@ static void nl80211_del_p2pdev(struct i802_bss *bss)
|
||||
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Delete P2P Device %s (0x%llx): %s",
|
||||
bss->ifname, (long long unsigned int) bss->wdev_id,
|
||||
strerror(ret));
|
||||
strerror(-ret));
|
||||
|
||||
nla_put_failure:
|
||||
nlmsg_free(msg);
|
||||
@ -4034,7 +4034,7 @@ static int nl80211_set_p2pdev(struct i802_bss *bss, int start)
|
||||
wpa_printf(MSG_DEBUG, "nl80211: %s P2P Device %s (0x%llx): %s",
|
||||
start ? "Start" : "Stop",
|
||||
bss->ifname, (long long unsigned int) bss->wdev_id,
|
||||
strerror(ret));
|
||||
strerror(-ret));
|
||||
|
||||
nla_put_failure:
|
||||
nlmsg_free(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user