if (conn &&
(conn->state == BT_CONFIG || conn->state == BT_CONNECTED)) {
if (!test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags))
- mgmt_device_connected(hdev, conn, 0, name, name_len);
+ mgmt_device_connected(hdev, conn, name, name_len);
else
mgmt_device_name_update(hdev, bdaddr, name, name_len);
}
hci_conn_del(conn);
#ifdef TIZEN_BT
- if (type == ACL_LINK && !hci_conn_num(hdev, ACL_LINK)) {
+ if (conn->type == ACL_LINK && !hci_conn_num(hdev, ACL_LINK)) {
int iscan;
int pscan;
hci_req_init(&req, hdev);
- hci_req_add(&req, HCI_OP_LE_ADD_TO_WHITE_LIST, sizeof(*cp), cp);
+ hci_req_add(&req, HCI_OP_LE_ADD_TO_ACCEPT_LIST, sizeof(*cp), cp);
err = hci_req_run(&req, add_white_list_complete);
if (err < 0) {
hci_req_init(&req, hdev);
- hci_req_add(&req, HCI_OP_LE_DEL_FROM_WHITE_LIST, sizeof(*cp), cp);
+ hci_req_add(&req, HCI_OP_LE_DEL_FROM_ACCEPT_LIST, sizeof(*cp), cp);
err = hci_req_run(&req, remove_from_white_list_complete);
if (err < 0) {
hci_req_init(&req, hdev);
- hci_req_add(&req, HCI_OP_LE_CLEAR_WHITE_LIST, 0, NULL);
+ hci_req_add(&req, HCI_OP_LE_CLEAR_ACCEPT_LIST, 0, NULL);
err = hci_req_run(&req, clear_white_list_complete);
if (err < 0) {