diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2013-01-30 09:50:56 -0500 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-03-08 08:38:43 -0500 |
commit | bed71748346ae0807c7f7a2913965508dbd61403 (patch) | |
tree | 2919c16c4f880a6a60d5896e9b7a50026f0b96c2 | |
parent | 7da060c1c01b103d181dba39bce9bd141a945f99 (diff) |
Bluetooth: Rename hci_acl_disconn
As hci_acl_disconn function basically sends the HCI Disconnect Command
and it is used to disconnect ACL, SCO and LE links, renaming it to
hci_disconnect is more suitable.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 | ||||
-rw-r--r-- | net/bluetooth/hci_conn.c | 4 | ||||
-rw-r--r-- | net/bluetooth/hci_core.c | 2 | ||||
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 90cf75afcb02..787d3b9bbd58 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -574,7 +574,7 @@ static inline struct hci_conn *hci_conn_hash_lookup_state(struct hci_dev *hdev, | |||
574 | return NULL; | 574 | return NULL; |
575 | } | 575 | } |
576 | 576 | ||
577 | void hci_acl_disconn(struct hci_conn *conn, __u8 reason); | 577 | void hci_disconnect(struct hci_conn *conn, __u8 reason); |
578 | void hci_setup_sync(struct hci_conn *conn, __u16 handle); | 578 | void hci_setup_sync(struct hci_conn *conn, __u16 handle); |
579 | void hci_sco_setup(struct hci_conn *conn, __u8 status); | 579 | void hci_sco_setup(struct hci_conn *conn, __u8 status); |
580 | 580 | ||
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 4925a02ae7e4..b9f90169940b 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -117,7 +117,7 @@ static void hci_acl_create_connection_cancel(struct hci_conn *conn) | |||
117 | hci_send_cmd(conn->hdev, HCI_OP_CREATE_CONN_CANCEL, sizeof(cp), &cp); | 117 | hci_send_cmd(conn->hdev, HCI_OP_CREATE_CONN_CANCEL, sizeof(cp), &cp); |
118 | } | 118 | } |
119 | 119 | ||
120 | void hci_acl_disconn(struct hci_conn *conn, __u8 reason) | 120 | void hci_disconnect(struct hci_conn *conn, __u8 reason) |
121 | { | 121 | { |
122 | struct hci_cp_disconnect cp; | 122 | struct hci_cp_disconnect cp; |
123 | 123 | ||
@@ -253,7 +253,7 @@ static void hci_conn_disconnect(struct hci_conn *conn) | |||
253 | hci_amp_disconn(conn, reason); | 253 | hci_amp_disconn(conn, reason); |
254 | break; | 254 | break; |
255 | default: | 255 | default: |
256 | hci_acl_disconn(conn, reason); | 256 | hci_disconnect(conn, reason); |
257 | break; | 257 | break; |
258 | } | 258 | } |
259 | } | 259 | } |
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 60793e7b768b..4cb46c24a749 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -2398,7 +2398,7 @@ static void hci_link_tx_to(struct hci_dev *hdev, __u8 type) | |||
2398 | if (c->type == type && c->sent) { | 2398 | if (c->type == type && c->sent) { |
2399 | BT_ERR("%s killing stalled connection %pMR", | 2399 | BT_ERR("%s killing stalled connection %pMR", |
2400 | hdev->name, &c->dst); | 2400 | hdev->name, &c->dst); |
2401 | hci_acl_disconn(c, HCI_ERROR_REMOTE_USER_TERM); | 2401 | hci_disconnect(c, HCI_ERROR_REMOTE_USER_TERM); |
2402 | } | 2402 | } |
2403 | } | 2403 | } |
2404 | 2404 | ||
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 477726a63512..5892e54835a1 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2399,7 +2399,7 @@ static void hci_encrypt_change_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
2399 | clear_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags); | 2399 | clear_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags); |
2400 | 2400 | ||
2401 | if (ev->status && conn->state == BT_CONNECTED) { | 2401 | if (ev->status && conn->state == BT_CONNECTED) { |
2402 | hci_acl_disconn(conn, HCI_ERROR_AUTH_FAILURE); | 2402 | hci_disconnect(conn, HCI_ERROR_AUTH_FAILURE); |
2403 | hci_conn_put(conn); | 2403 | hci_conn_put(conn); |
2404 | goto unlock; | 2404 | goto unlock; |
2405 | } | 2405 | } |
@@ -3472,7 +3472,7 @@ static void hci_key_refresh_complete_evt(struct hci_dev *hdev, | |||
3472 | clear_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags); | 3472 | clear_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags); |
3473 | 3473 | ||
3474 | if (ev->status && conn->state == BT_CONNECTED) { | 3474 | if (ev->status && conn->state == BT_CONNECTED) { |
3475 | hci_acl_disconn(conn, HCI_ERROR_AUTH_FAILURE); | 3475 | hci_disconnect(conn, HCI_ERROR_AUTH_FAILURE); |
3476 | hci_conn_put(conn); | 3476 | hci_conn_put(conn); |
3477 | goto unlock; | 3477 | goto unlock; |
3478 | } | 3478 | } |