mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-15 07:53:58 +08:00
android/gatt: Fix for device type in gatt
This patch fixes remote device type in GATT cache, which should be updated on connect confirm
This commit is contained in:
parent
ef1680fb9a
commit
35a6c189c0
@ -6115,8 +6115,6 @@ static void connect_confirm(GIOChannel *io, void *user_data)
|
||||
error("gatt: Could not create device");
|
||||
goto drop;
|
||||
}
|
||||
|
||||
dev->bdaddr_type = dst_type;
|
||||
} else {
|
||||
if ((dev->state != DEVICE_DISCONNECTED) &&
|
||||
!(dev->state == DEVICE_CONNECT_INIT &&
|
||||
@ -6130,6 +6128,8 @@ static void connect_confirm(GIOChannel *io, void *user_data)
|
||||
}
|
||||
}
|
||||
|
||||
dev->bdaddr_type = dst_type;
|
||||
|
||||
if (!bt_io_accept(io, connect_cb, device_ref(dev), NULL, NULL)) {
|
||||
error("gatt: failed to accept connection");
|
||||
device_unref(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user