summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 15:10:41 -0800
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 15:10:41 -0800
commit8493d6363e61f1ef68763aab8e65f75be7f67fac (patch)
tree6e16a93a5c7ccaf16bc0393e61218e9ad2b6e0d3 /src/device.c
parent1d2672966f514507f82058782034c481800122e6 (diff)
Don't store the link key for "no bonding" cases
We should not store the link key if either side had "no bonding" as their authentication requirement.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index fa8658e5..68d7bf21 100644
--- a/src/device.c
+++ b/src/device.c
@@ -640,6 +640,8 @@ struct btd_device *device_create(DBusConnection *conn, struct btd_adapter *adapt
str2ba(address, &device->bdaddr);
device->adapter = adapter;
+ device->auth = 0xff;
+
return device;
}