Force power-on + fast-reconnect on a new adapter

When BlueZ stack detects a new Bluetooth adapter, force that adapter
to power-on state and to use fast-reconnect page scan parameters.

This is needed in order to handle Bruno BCM20702 Bluetooth adapter
crashiness. When BCM20702 crashes and goes through hardware reset,
it is removed and reinserted on the relevant USB bus, as if it were
hotplugged. So, we need to handle this hotplug event correctly and
configure the new adapter interface in BlueZ accordingly.

This same code works also for the normal coldboot case on both Bruno
and Camaro. After committing this, power-on and fast-reconnect init
commands can be removed from /etc/init.d/S31bluez.

Change-Id: I70f7a458fcb604b75a522f8ca6c3ba8432fe0925
1 file changed