Diff between 4760ada065f22604795295d1377e6a50a2d5efac and 73b301372b21d56a6c8902659fbfd1c352ad55de
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -1 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 698c668..44b9033 100644
--- a/src/device.c
+++ b/src/device.c
@@ -301,7 +301,7 @@ static bool get_initiator(struct btd_device *dev)
if (dev->bredr_state.connected)
return dev->bredr_state.initiator;
- return false;
+ return dev->att_io ? true : false;
}
static GSList *find_service_with_profile(GSList *list, struct btd_profile *p)
@@ -5368,6 +5368,9 @@ static void att_connect_cb(GIOChannel *io, GError *gerr, gpointer user_data)
goto done;
}
+ /* Update connected state */
+ device->le_state.connected = true;
+
if (!device_attach_att(device, io))
goto done;