From debc2efd75e3211934c2f4262140e7c28f574945 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Tue, 22 Jul 2008 23:45:33 +0530 Subject: Adding adapter_get_address. Signed-off-by: Alok Barsode --- hcid/dbus-hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hcid/dbus-hci.c') diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index 01c20f1a..f03b2a85 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -324,6 +324,7 @@ static void pincode_cb(struct agent *agent, DBusError *err, const char *pincode, struct pending_auth_info *auth; const gchar *destination = device_get_address(device); uint16_t dev_id = adapter_get_dev_id(adapter); + const gchar *source = adapter_get_address(adapter); /* No need to reply anything if the authentication already failed */ if (adapter->bonding && adapter->bonding->hci_status) @@ -336,7 +337,7 @@ static void pincode_cb(struct agent *agent, DBusError *err, const char *pincode, return; } - str2ba(adapter->address, &sba); + str2ba(source, &sba); str2ba(destination, &dba); auth = adapter_find_auth_request(adapter, &dba); -- cgit