summaryrefslogtreecommitdiff
path: root/plugins/sixaxis.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-03-22 19:30:18 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-22 19:34:32 +0200
commitc19756d3729d0770bf1e266ad9817d6e86bce667 (patch)
tree7d0771268a8330ee79d627333e0f5c54e04c303c /plugins/sixaxis.c
parentf6a403f084e683fb8ab1601f7cb7cbc1a4f6cd76 (diff)
downloadbluez-c19756d3729d0770bf1e266ad9817d6e86bce667.tar.gz
core: Update btd_adapter_find_device to also match the address type
This is necessary to do accurate matching for LE devices.
Diffstat (limited to 'plugins/sixaxis.c')
-rw-r--r--plugins/sixaxis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c
index 4fdeff350..8045448f1 100644
--- a/plugins/sixaxis.c
+++ b/plugins/sixaxis.c
@@ -197,7 +197,8 @@ static bool setup_device(int fd, int index, struct btd_adapter *adapter)
/* This can happen if controller was plugged while already connected
* eg. to charge up battery.
* Don't set LEDs in that case, hence return false */
- device = btd_adapter_find_device(adapter, &device_bdaddr);
+ device = btd_adapter_find_device(adapter, &device_bdaddr,
+ BDADDR_BREDR);
if (device && btd_device_is_connected(device))
return false;