summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-08-19 10:12:26 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-08-19 10:12:26 +0000
commit67f57bda5344038e57ca0ca3e22594ef84f041ea (patch)
tree500a3cec76cd0b13c13bf20d1a4e5d28507dc23e
parentf841e8de8c71a0f726f77a65b4145b76e924df14 (diff)
Cancel PIN request on HCI level if agent exits
-rw-r--r--hcid/dbus-security.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index c4ef5931..d757100a 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -58,6 +58,9 @@ static void passkey_agent_free(struct passkey_agent *agent)
for (l = agent->pending_requests; l != NULL; l = l->next) {
struct pending_agent_request *req = l->data;
+
+ hci_send_cmd(req->dev, OGF_LINK_CTL,
+ OCF_PIN_CODE_NEG_REPLY, 6, &req->bda);
free(req->path);
dbus_pending_call_cancel(req->call);