From: Vinicius Costa Gomes Date: Thu, 25 Aug 2011 23:02:37 +0000 (-0300) Subject: Bluetooth: Remove support for other SMP keys than the LTK X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca10b5ee0cb298f094db00dba7e397a8bc4e8398;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: Remove support for other SMP keys than the LTK For now, only the LTK is properly supported. We are able to receive and generate the other types of keys, but we are not able to use them. So it's better not request them to be distributed. Signed-off-by: Vinicius Costa Gomes Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 63540d0c0db3..759b63572641 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -196,7 +196,7 @@ static void build_pairing_cmd(struct l2cap_conn *conn, dist_keys = 0; if (test_bit(HCI_PAIRABLE, &conn->hcon->hdev->flags)) { - dist_keys = SMP_DIST_ENC_KEY | SMP_DIST_ID_KEY | SMP_DIST_SIGN; + dist_keys = SMP_DIST_ENC_KEY; authreq |= SMP_AUTH_BONDING; }