mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
ap: Make sure strerror argument is positive
This commit is contained in:
parent
f046bed225
commit
6ad50ac49b
2
src/ap.c
2
src/ap.c
@ -2783,7 +2783,7 @@ static void ap_stop_cb(struct l_genl_msg *msg, void *user_data)
|
|||||||
ap->start_stop_cmd_id = 0;
|
ap->start_stop_cmd_id = 0;
|
||||||
|
|
||||||
if (error < 0)
|
if (error < 0)
|
||||||
l_error("STOP_AP failed: %s (%i)", strerror(error), error);
|
l_error("STOP_AP failed: %s (%i)", strerror(-error), -error);
|
||||||
|
|
||||||
if (ap->stopped_func)
|
if (ap->stopped_func)
|
||||||
ap->stopped_func(ap->user_data);
|
ap->stopped_func(ap->user_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user