[PATCH 0/2] Device detection upon systemd-udev renaming

2014-04-29 Thread Eduardo Abinader
The following two patches are related somehow in the scenario where wifi dongle is removed and inserted again, and systemd-udev renames device. Sytemd-udev may have predefined device names, which does not necessarily follow kernel device sequential numbering. The renaming of the device causes

[PATCH 1/2] Don't ignore RTM_NEWLINK, when ifname has changed

2014-04-29 Thread Eduardo Abinader
Whenever systemd-udev renames a device, the orginal ifindex is kept and consequently connman is unable to issue a proper create interface to reflect such device change. --- include/device.h | 1 + src/detect.c | 15 +-- src/device.c | 20 3 files changed,

[PATCH 2/2] Avoid invalid read in scan_callback

2014-04-29 Thread Eduardo Abinader
If a pending scan_callback is called after a dongle removal, invalid reads occur in connman_device_reset_scanning, for instance. This patch cleans the callback, before dbus remove interface is returned. --- gsupplicant/supplicant.c | 3 +++ 1 file changed, 3 insertions(+) diff --git