--- src/agent.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/agent.c b/src/agent.c index 7bba849..d1494de 100644 --- a/src/agent.c +++ b/src/agent.c @@ -428,11 +428,9 @@ static int pincode_request_new(struct agent_request *req, const char *device_pat { struct agent *agent = req->agent; - /* TODO: Add a new method or a new param to Agent interface to request - secure pin. */ - req->msg = dbus_message_new_method_call(agent->name, agent->path, - "org.bluez.Agent", "RequestPinCode"); + "org.bluez.Agent", secure ? + "RequestSecurePinCode" : "RequestPinCode"); if (req->msg == NULL) { error("Couldn't allocate D-Bus message"); return -ENOMEM; -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html