wifi: Handle D-Bus method call failure
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 9 Nov 2012 08:54:21 +0000 (10:54 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 13 Nov 2012 12:37:59 +0000 (14:37 +0200)
commit54f4fd02dc611aecf74bb2341ba88c94caadf6ec
tree08b15aeda5051d30bcebd30e3f26ddf944f0c97e
parent0fb7d1f43b653a9057cdd35a42b4bc766655e72d
wifi: Handle D-Bus method call failure

If -ECONNABORTED is received from the gsupplicant network disconnect
callback, it's an indication that the interface has already been
removed from wpa_supplicant side. This can happen due to a race condition
between rtnl and wpa_supplicant interface removal when a USB WiFi dongle
is pulled out.

The pointers given to the callback can no longer be trusted, don't touch
them in the callback. The have been removed by other code at this point.
plugins/wifi.c