Revert "Revert "libbt: bluetooth fixes""

This reverts commit d8b9a49d1d6c4d3b6b172d9ffe67c1d343635e2c.