Return-Path: From: Vinicius Costa Gomes To: linux-bluetooth@vger.kernel.org Cc: Vinicius Costa Gomes Subject: [PATCH BlueZ v1 09/15] peripheral/gatt: Use LOW security level Date: Tue, 21 Jul 2015 20:16:42 -0300 Message-Id: <1437520608-22444-10-git-send-email-vcgomes@gmail.com> In-Reply-To: <1437520608-22444-1-git-send-email-vcgomes@gmail.com> References: <1437520608-22444-1-git-send-email-vcgomes@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Mostly to help testing. And for heartrate, the profile being implemented in later patches, this is a valid security level for useful use cases. --- peripheral/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripheral/gatt.c b/peripheral/gatt.c index 0cb4f6d..0b5d5fe 100644 --- a/peripheral/gatt.c +++ b/peripheral/gatt.c @@ -134,7 +134,7 @@ static struct gatt_conn *gatt_conn_new(int fd) bt_att_set_close_on_unref(conn->att, true); bt_att_register_disconnect(conn->att, gatt_conn_disconnect, conn, NULL); - bt_att_set_security(conn->att, BT_SECURITY_MEDIUM); + bt_att_set_security(conn->att, BT_SECURITY_LOW); conn->gatt = bt_gatt_server_new(gatt_db, conn->att, mtu); if (!conn->gatt) { -- 2.4.6