summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 15:42:40 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 15:42:40 +0200
commitcdd935446174aa12d1835d480df49ecfd2f2ab56 (patch)
tree1f287522c2f47890f368b4fa9c499a3d2bbd342b /src/adapter.c
parentcd050e431ddbecf708483fe58e288b671010f2d6 (diff)
Clear authentication info upon disconnect
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index b2e0b65b..f3a304c7 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2671,6 +2671,9 @@ void adapter_remove_connection(struct btd_adapter *adapter,
device_get_address(device, &bdaddr);
hci_req_queue_remove(adapter->dev_id, &bdaddr);
+ if (device_is_authenticating(device))
+ device_cancel_authentication(device);
+
if (device_is_temporary(device)) {
const char *path = device_get_path(device);