bluetooth: Deregister battery provider when profile disconnects
Whenever a device disconnects the device is not removed from BlueZ, only the profiles that had an active connection are disconnected. Since we were providing this battery level based on AT commands received through HSP/HFP these services should be responsible for deregistering it again. Deregister the interface to signal BlueZ (And UPower in return) that the battery level won't be accurate/updated anymore.
Showing with 36 additions and 0 deletions