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: 631ca80692
(cherry picked from commit aa0e395530)
This commit is contained in:
Lubomir Rintel 2018-10-06 08:58:55 +02:00
parent 628c976f54
commit 8f1631c679

View file

@ -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));