bluetooth: Defer add_networks() if adapter is not powered yet
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 9 Aug 2012 16:27:53 +0000 (18:27 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 14 Aug 2012 06:20:41 +0000 (09:20 +0300)
commit6b256ce8bd24af901d0b0abc0394b9a80ee1314f
treef69aa6ae629d760d04460a86ca8d401fe9b8e135
parent387604eec8dde638ccd019805e21d636c84d49c8
bluetooth: Defer add_networks() if adapter is not powered yet

In the case we add a new adapter and the adapter is powered off
we would ignore the reported devices. Later when the adapter was
powered on it would just not add those networks.

Instead silently ignoring the devices, store the D-Bus paths in
a hash table and process them as soon the adapter is powered.

Fixes BMC#25322
plugins/bluetooth.c