]> Pileus Git - ~andy/linux/commitdiff
Bluetooth: Remove magic disconnect reason
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 1 Jun 2012 13:18:25 +0000 (16:18 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:16 +0000 (06:34 +0300)
The macro gives a better idea of the what the error really is.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c

index cf39e95777fcbcc6a3372c5d4f8814f54dbe4ded..08994ecc3b6a5e7cc168ee7cd957a38c49d2e579 100644 (file)
@@ -2307,7 +2307,7 @@ static void hci_link_tx_to(struct hci_dev *hdev, __u8 type)
                if (c->type == type && c->sent) {
                        BT_ERR("%s killing stalled connection %s",
                               hdev->name, batostr(&c->dst));
-                       hci_acl_disconn(c, 0x13);
+                       hci_acl_disconn(c, HCI_ERROR_REMOTE_USER_TERM);
                }
        }