[PATCH 0/2] Connman 1.9 crashes when wifi dongle is unplugged.

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Fri Nov 9 00:54:19 PST 2012

From: Patrik Flykt <patrik.flykt at linux.intel.com>


It seems there is a race condition between rtnl and wpa_supplicant.

The registered object path is gone when ConnMan tries to disconnect and
remove the network from wpa_supplicant. Thus look out for D-Bus telling
that the intended objec path is gone.

The real problem behind this is that the struct wifi_data is given to the
callback and is freed while either of the D-Bus method calls are in
progress. But that takes some more time to fix.

While testing, can you please export the CONNMAN_SUPPLICANT_DEBUG=1
environment variable so we get the needed logging from the wifi plugin
and the gsupplicant support code also?



Patrik Flykt (2):
  supplicant: Handle race condition on WiFi dongle removal
  wifi: Handle D-Bus method call failure

 gsupplicant/supplicant.c |   25 +++++++++++++++++++++----
 plugins/wifi.c           |    8 ++++++++
 2 files changed, 29 insertions(+), 4 deletions(-)


More information about the connman mailing list