summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@codecoup.pl>2016-10-21 21:41:18 +0200
committerSzymon Janc <szymon.janc@codecoup.pl>2016-10-25 19:20:59 +0200
commit2d3685252a21cda4b918ad1cc4dd0572bd5c6d3c (patch)
tree35c2ba90850c07ddd872ef71993b2ca3f3cd849a /src/device.h
parent49707d7a508fb01760713b7265a15886977b096f (diff)
downloadbluez-2d3685252a21cda4b918ad1cc4dd0572bd5c6d3c.tar.gz
core: Fix BR/EDR pairing for dual mode devices
For dual mode devices we need to pass address type used in pairing events to reply with correct one on agent reply. Otherwise reply for BR/EDR pairing of dual mode device would use address type (which is valid only for LE address) resulting in reply being ignored by kernel and eventually pairing timeout.
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/device.h b/src/device.h
index 93a159acc..3cab366ee 100644
--- a/src/device.h
+++ b/src/device.h
@@ -111,11 +111,11 @@ int device_bonding_attempt_retry(struct btd_device *device);
long device_bonding_last_duration(struct btd_device *device);
void device_bonding_restart_timer(struct btd_device *device);
int device_request_pincode(struct btd_device *device, gboolean secure);
-int device_request_passkey(struct btd_device *device);
-int device_confirm_passkey(struct btd_device *device, uint32_t passkey,
- uint8_t confirm_hint);
-int device_notify_passkey(struct btd_device *device, uint32_t passkey,
- uint8_t entered);
+int device_request_passkey(struct btd_device *device, uint8_t type);
+int device_confirm_passkey(struct btd_device *device, uint8_t type,
+ int32_t passkey, uint8_t confirm_hint);
+int device_notify_passkey(struct btd_device *device, uint8_t type,
+ uint32_t passkey, uint8_t entered);
int device_notify_pincode(struct btd_device *device, gboolean secure,
const char *pincode);
void device_cancel_authentication(struct btd_device *device, gboolean aborted);