core: Fix adding BR/EDR devices to auto connect list
Luiz Augusto von Dentz
maintainerPATCH 1/1 core: Fix adding BR/EDR devices to auto connect list
From: Luiz Augusto von Dentz <[email protected]>
This can happen with devices that export ATT profiles as SDP records such BlackBerry phones causing drivers to get probed which then call btd_device_add_attio_callback to get notified once connected.
--- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/device.c +1 -1
@@ -3908,7 +3908,7 @@ static void device_set_auto_connect(struct btd_device *device, gboolean enable) {char addr[18 ]; -if (!device) +if (!device || !device->le)return ;ba2str (&device->bdaddr, addr);
Signature · 1 line
1.8.5.3
Johan Hedberg
AppliedHi Luiz,
Quoted 6 lines · Luiz Augusto von Dentz
This can happen with devices that export ATT profiles as SDP records such BlackBerry phones causing drivers to get probed which then call
btd_device_add_attio_callbackto get notified once connected.--- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied. Thanks.
Johan