Skip to contentSkip to conversation

core/device: Fix not setting BT_ATT_SECURITY_AUTO

PATCH New Luiz Augusto von Dentz 1 participant 1 message Mar 2, 2016 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 core/device: Fix not setting BT_ATT_SECURITY_AUTO

From: Luiz Augusto von Dentz <[email protected]>

BT_ATT_SECURITY_AUTO shall be used whenever possible since it enables the old behavior of escalating the security on demand.

---
 src/device.c | 1 +
 1 file changed, 1 insertion(+)
src/device.c +1 -0
index 14e850e..6bc44b6 100644
@@ -4710,6 +4710,7 @@ bool device_attach_att(struct btd_device *dev, GIOChannel *io)
 	dev->att = g_attrib_get_att(attrib);
 
 	bt_att_ref(dev->att);
+	bt_att_set_security(dev->att, BT_ATT_SECURITY_AUTO);
 
 	dev->att_disconn_id = bt_att_register_disconnect(dev->att,
 						att_disconnected_cb, dev, NULL);
Signature · 1 line
2.5.0