summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-hci.c
diff options
context:
space:
mode:
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);