bluetooth: Copypasta from bacon