Propagate disconnection reason
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 1 replyIn review
- v33 patches 1 replySuperseded
- v23 patches 4 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 6 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | lib/mgmt: Add MGMT_DEV_DISCONN_AUTH_FAILURE definelib/ | +1 | 1 reply | |
| 2/4 | src/device: Add Disconnected signal to propagate disconnection reasonsrc/ src/ src/ | +65 | 0 replies | |
| 3/4 | doc/device: Add Disconnected signaldoc/ | +41 | 0 replies | |
| 4/4 | client: Display disconnection reasonclient/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH BlueZ v4 0/4] Propagate disconnection reason
Currently a client application is informed of the disconnection by the update of the Connected property to false.
This sends a Disconnected signal with the disconnection reason before the property is updated.
This will help client application to know the reason for the disconnection and to take appropriate action.
bluetoothctl is updated to display the disconnection reason on reception of the signal.
This can be tested in bluetoothctl by disconnecting a device, which generates:
[SIGNAL] org.bluez.Device1.Disconnected disconnection-local-host
v1->v2: Propagate numerical reason instead of text one
Improve documentation
Display disconnect reason in numerical and text in bluetoothctlv2->v3: Replace numerical value by name and message to be more consistent
with Device.Connect error reply.v3->v4: Add MGMT_DEV_DISCONN_AUTH_FAILURE to be in sync with kernel
definitions
Frédéric Danis (4):
lib/mgmt: Add MGMT_DEV_DISCONN_AUTH_FAILURE define src/device: Add Disconnected signal to propagate disconnection reason doc/device: Add Disconnected signal
client: Display disconnection reason
client/main.c | 18 +++++++++++++ doc/org.bluez.Device.rst | 41 +++++++++++++++++++++++++++++ lib/mgmt.h | 1 + src/adapter.c | 13 +++++---- src/device.c | 57 ++++++++++++++++++++++++++++++++++++++-- src/device.h | 3 ++- 6 files changed, 125 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.0