summaryrefslogtreecommitdiff
path: root/android/bluetooth.c
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2014-12-11 10:29:44 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-12-18 10:00:58 +0100
commit1ed53a8c98b1f0e07127fe7a06a53f56f7dcf0c6 (patch)
tree54bd9ec55db0216a6207b17c161f98a2c43ca91e /android/bluetooth.c
parent1dd0a92167db8093bcfb935f8909aaee5e42c20e (diff)
downloadbluez-1ed53a8c98b1f0e07127fe7a06a53f56f7dcf0c6.tar.gz
android/gatt: Remove discoverable flag from device found callback
Android is interested in all of the Scan Responses. Also the ones which are set as non discoverable. It is in order to support Observer\Broadcaster mode. Therefore discoverable flag can be removed from the device found callback. This patch does it.
Diffstat (limited to 'android/bluetooth.c')
-rw-r--r--android/bluetooth.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/android/bluetooth.c b/android/bluetooth.c
index 169f0bf2c..48085e9a7 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -1946,12 +1946,9 @@ static void update_found_device(const bdaddr_t *bdaddr, uint8_t bdaddr_type,
/* Notify Gatt if its registered for LE events */
if (bdaddr_type != BDADDR_BREDR && gatt_device_found_cb) {
- bool discoverable;
bdaddr_t *addr;
uint8_t addr_type;
- discoverable = eir.flags & (EIR_LIM_DISC | EIR_GEN_DISC);
-
/*
* If RPA is set it means that IRK was received and ID address
* is being used. Android Framework is still using old RPA and
@@ -1967,7 +1964,7 @@ static void update_found_device(const bdaddr_t *bdaddr, uint8_t bdaddr_type,
}
gatt_device_found_cb(addr, addr_type, rssi, data_len, data,
- discoverable, dev->le_bonded);
+ dev->le_bonded);
}
if (!dev->bredr_paired && !dev->le_paired)