Do not set network index from PAN disconnect reply
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Apr 2010 21:39:57 +0000 (23:39 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Apr 2010 21:45:12 +0000 (23:45 +0200)
commit3291e6583f5bdb4fc6037cd33a357890127c3a1d
tree70297cd97534a526d535a272d76330ef5e47188e
parentd55c478a09cb438bdd7268effb75994b6abf885c
Do not set network index from PAN disconnect reply

There is no need to track the network's connected state through its index.
As a matter of fact, setting the network index to -1 on the PAN disconnect
path can triggers segmentation faults when powering the device off at the
same time.
plugins/bluetooth.c