bluedroid/bluetooth.c: changes from CAF