From 31279a4a05dfbce1ff09a1348b6afc94e6ba7b11 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Fri, 14 Oct 2022 16:02:19 +0900 Subject: [PATCH] Bluetooth : fix build error Update device name on remote_name_event, Fix interface define for build error. Change-Id: I59df4a7e30f9a83a0efdce516b2a325cb3b0983b Signed-off-by: Hoegeun Kwon --- net/bluetooth/hci_event.c | 4 ++-- net/bluetooth/mgmt.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 92890ae..d219042 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -2283,7 +2283,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); } @@ -3169,7 +3169,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; diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 3b47ecf..8c57454 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -6457,7 +6457,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) { @@ -6540,7 +6540,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) { @@ -6618,7 +6618,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) { -- 2.7.4