floss: btclient: Allow -c command when adapter is disabled
Before we always wait until the callbacks are registered before running
-c command. However, some commands only work when the adapter is
disabled such as `adapter enable` and `floss enable`.
In this patch we simply don't wait for the callbacks registration if the
adapter is disabled.
This patch also make it gracefully print error messages for `adapter
discoverable/connectable/set-name` commands, rather than just panic.
Bug: 315262326
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: btclient -c 'adatper disable'
btclient -c 'floss disable'
btclient -c 'floss enable'
btclient -c 'adapter connectable on' # no panic
btclient -c 'adatper enable'
Flag: EXEMPT, Floss-only changes
Change-Id: I6d239e61bf1983675709079e8e436d6bb55f4de8
Loading
Please register or sign in to comment