hci_event.c (c89b6e6bda4c8021195778f47567d0cc9dbfe7ec) | hci_event.c (8c1b235594fbab9a13240a1dac12ea9fd99b6440) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 1587 unchanged lines hidden (view full) --- 1596 if ((ie = hci_inquiry_cache_lookup(hdev, &conn->dst))) 1597 ie->data.ssp_mode = (ev->features[0] & 0x01); 1598 1599 conn->ssp_mode = (ev->features[0] & 0x01); 1600 } 1601 1602 if (conn->state == BT_CONFIG) { 1603 if (!ev->status && hdev->ssp_mode > 0 && | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 1587 unchanged lines hidden (view full) --- 1596 if ((ie = hci_inquiry_cache_lookup(hdev, &conn->dst))) 1597 ie->data.ssp_mode = (ev->features[0] & 0x01); 1598 1599 conn->ssp_mode = (ev->features[0] & 0x01); 1600 } 1601 1602 if (conn->state == BT_CONFIG) { 1603 if (!ev->status && hdev->ssp_mode > 0 && |
1604 conn->ssp_mode > 0 && conn->out) { | 1604 conn->ssp_mode > 0 && conn->out && 1605 conn->sec_level != BT_SECURITY_SDP) { |
1605 struct hci_cp_auth_requested cp; 1606 cp.handle = ev->handle; 1607 hci_send_cmd(hdev, HCI_OP_AUTH_REQUESTED, 1608 sizeof(cp), &cp); 1609 } else { 1610 conn->state = BT_CONNECTED; 1611 hci_proto_connect_cfm(conn, ev->status); 1612 hci_conn_put(conn); --- 313 unchanged lines hidden --- | 1606 struct hci_cp_auth_requested cp; 1607 cp.handle = ev->handle; 1608 hci_send_cmd(hdev, HCI_OP_AUTH_REQUESTED, 1609 sizeof(cp), &cp); 1610 } else { 1611 conn->state = BT_CONNECTED; 1612 hci_proto_connect_cfm(conn, ev->status); 1613 hci_conn_put(conn); --- 313 unchanged lines hidden --- |