wifi: Set wifi device powered FALSE when removed
authorYu A Wang <arron.wang@intel.com>
Thu, 8 Dec 2011 07:31:15 +0000 (02:31 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 16 Dec 2011 18:51:53 +0000 (19:51 +0100)
commit7999a1fc4c6f695674d9510e9c18790748f5e4e5
tree46b4ae695e2be5c9a132491692e1ab02181b556e
parent83a6923af0156de7575fac4bfb0ad2ee5023b361
wifi: Set wifi device powered FALSE when removed

In interface_removed function, connman_device_set_powered may not be
called due to wifi->device is freed before supplicant callback. This
happens when we remove the second wifi device. This may lead technology
refcount inbalance, which could potentially prevent the wifi technology to
be enabled again.
plugins/wifi.c