summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-09-03 12:47:20 +0530
committerAlok Barsode <alok.barsode@azingo.com>2008-09-03 12:47:20 +0530
commit3692b8262294723c1fcfc75e759e59570557f949 (patch)
tree90add043b900e2a6969c036558ba36e20edaccb4 /src/dbus-hci.c
parent96adaa7ebd6e83db29df644f7952370dbea4ac85 (diff)
Adding adapter_get_agent.
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index d0348522..604011f0 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -254,7 +254,7 @@ int hcid_dbus_request_pin(int dev, bdaddr_t *sba, struct hci_conn_info *ci)
agent = device_get_agent(device);
if (!agent)
- agent = adapter->agent;
+ agent = adapter_get_agent(adapter);
if (!agent)
return -EPERM;
@@ -463,7 +463,7 @@ int hcid_dbus_user_confirm(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey)
agent = device_get_agent(device);
if (!agent)
- agent = adapter->agent;
+ agent = adapter_get_agent(adapter);
if (!agent) {
error("No agent available for user confirm request");
@@ -504,7 +504,7 @@ int hcid_dbus_user_passkey(bdaddr_t *sba, bdaddr_t *dba)
agent = device_get_agent(device);
if (!agent)
- agent = adapter->agent;
+ agent = adapter_get_agent(adapter);
if (!agent) {
error("No agent available for user confirm request");
@@ -543,7 +543,7 @@ int hcid_dbus_user_notify(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey)
agent = device_get_agent(device);
if (!agent)
- agent = adapter->agent;
+ agent = adapter_get_agent(adapter);
if (!agent) {
error("No agent available for user confirm request");
@@ -1479,7 +1479,7 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote,
*auth = 0x03;
}
if (!agent)
- agent = adapter->agent;
+ agent = adapter_get_agent(adapter);
if (!agent) {
/* This is the non bondable mode case */