Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9afaf671 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

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
parent e32556e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment