From 67f57bda5344038e57ca0ca3e22594ef84f041ea Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 19 Aug 2006 10:12:26 +0000 Subject: Cancel PIN request on HCI level if agent exits --- hcid/dbus-security.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit