summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-hci.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-07-09 14:34:35 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:36:07 -0300
commit2203f153c53189ec1c30df99b717e035681196e6 (patch)
treebb4fea2d6320c154d34c11f71345e6aedb3896e5 /hcid/dbus-hci.c
parent29227ad09e8996699e1b1d7e1c90d45fc80cab65 (diff)
Adding device_get_auth.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r--hcid/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 91c0a584..389a0b56 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -977,7 +977,7 @@ int hcid_dbus_user_confirm(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey)
}
/* If no MITM protection required, auto-accept */
- if (!(device->auth & 0x01) && !(type & 0x01)) {
+ if (!(device_get_auth(device) & 0x01) && !(type & 0x01)) {
int dd;
dd = hci_open_dev(adapter->dev_id);