Bluetooth : fix build error
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Fri, 14 Oct 2022 07:02:19 +0000 (16:02 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:43:51 +0000 (17:43 +0900)
Update device name on remote_name_event, Fix interface define for
build error.

Change-Id: I59df4a7e30f9a83a0efdce516b2a325cb3b0983b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c

index 233e68a..4597d44 100644 (file)
@@ -2297,7 +2297,7 @@ static void hci_check_pending_name(struct hci_dev *hdev, struct hci_conn *conn,
        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);
        }
@@ -3186,7 +3186,7 @@ static void hci_disconn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
        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;
 
index 1b08f59..6cdd391 100644 (file)
@@ -6493,7 +6493,7 @@ static int add_white_list(struct sock *sk, struct hci_dev *hdev,
 
        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) {
@@ -6576,7 +6576,7 @@ static int remove_from_white_list(struct sock *sk, struct hci_dev *hdev,
 
        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) {
@@ -6654,7 +6654,7 @@ static int clear_white_list(struct sock *sk, struct hci_dev *hdev,
 
        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) {