From 8f1631c679a4971d8b64e8be0175c262c06f96bc Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sat, 6 Oct 2018 08:58:55 +0200 Subject: [PATCH] devices/olpc: correct the signal handler arguments Commit 631ca806 ("devices/wifi: flip meaning of scanning allowed signal") added a "periodic" argument, but the OLPC companion handler was not adjusted. Fix it now. https://github.com/NetworkManager/NetworkManager/pull/222 Fixes: 631ca80692e4caec0b90e2301bbe5378889ad944 (cherry picked from commit aa0e395530fd89c150c8b424da6d305bb260c2fb) --- src/devices/wifi/nm-device-olpc-mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wifi/nm-device-olpc-mesh.c b/src/devices/wifi/nm-device-olpc-mesh.c index 6f833635a1..23ebdfb41d 100644 --- a/src/devices/wifi/nm-device-olpc-mesh.c +++ b/src/devices/wifi/nm-device-olpc-mesh.c @@ -279,7 +279,7 @@ companion_state_changed_cb (NMDeviceWifi *companion, } static gboolean -companion_scan_prohibited_cb (NMDeviceWifi *companion, gpointer user_data) +companion_scan_prohibited_cb (NMDeviceWifi *companion, gboolean periodic, gpointer user_data) { NMDeviceOlpcMesh *self = NM_DEVICE_OLPC_MESH (user_data); NMDeviceState state = nm_device_get_state (NM_DEVICE (self));