Closed pelwell closed 3 years ago
@XECDesign With this patch everything seems to work - Secure Simple Pairing, programmed and unprogrammed BDADDRs, with and without krnbt (BT modem initialisation by the kernel) - except the unprogrammed+krnbt combination which fails because the kernel spots the invalid address and effectively disables the interface.
@maxnet You might want to give this a try before it gets merged.
Many thanks, Phil. I've added the updated package to the internal repo for testing.
I have installed the package version containing these changes yesterday and unfortunately some of them appear to have broken bluetooth.service
on my Pi 4. Only after the changes in #22 bluetooth.service
starts reliably again after a reboot.
Rationalise the Bluetooth helper services so that they run before bluetoothd, avoiding the need to restart it if the BT address changes. At a later date the two services could possibly be unified.
These scripts should be revisited when the reason for the need to power-cycle the interface to permit Secure Simple Pairing work is known.
Signed-off-by: Phil Elwell phil@raspberrypi.com