floss: btmanagerd: Fix state machine for Stop and Restart
Stop: TurningOn now belongs to a "off" state, Stop should take no-op. Restart: To make sure the new config is applied, we should also restart the btadapterd for TurningOn state. Logging fix: When logging the state change result inside mainloop, we always assert the next states for StopBluetooth/BluetoothStopped, which is incorrect sometimes. It's now fixed by taking from the return value of the action functions. Bug: 270447662 Tag: #floss Test: mmm packages/modules/Bluetooth Test: SetLLPrivacy on On => Adapter restarts Test: SetLLPrivacy on TurningOn => Adapter restarts and eventually on Test: SetLLPrivacy on TurningOff | Restarting | Off => No-op Change-Id: Id9a1c06d1e71bca932ee59f1c3810c85404ca794
Loading
Please register or sign in to comment