summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiran Kelageri <kkelageri@codeaurora.org>2014-10-21 16:50:17 -0700
committerSteve Kondik <steve@cyngn.com>2014-12-18 22:54:36 -0800
commit7d74f34c19337fd2817d66b4523d8e7e6c00dea4 (patch)
treed1af343a29d19c00831a6ed69bd50d8707381666
parent6f9f3b691c9d60ef0c8f6f64f91e69ed46554777 (diff)
downloadandroid_packages_apps_BluetoothExt-7d74f34c19337fd2817d66b4523d8e7e6c00dea4.tar.gz
android_packages_apps_BluetoothExt-7d74f34c19337fd2817d66b4523d8e7e6c00dea4.tar.bz2
android_packages_apps_BluetoothExt-7d74f34c19337fd2817d66b4523d8e7e6c00dea4.zip
Bluetooth-Wipower: MTP continues advertising WPT UUID post connection.
a> Stack conitnues to advertise post connection which would lead to cross connection with other PTU within vicinity, So as to avoid rest of PTU's scanning the DUT which continues to advertise, Advertiements are being stopped post connection. b> .setTimeout() with any value less than 180Sec as parameter ensures that it sets the limited mode advertising. since wipower spec demands the advertisement mode to be limited this partciular change is been made and the timeout value is been set to 30Secs which is far enough for PTU to initiate connection. Change-Id: Id63bcc19d714d087fcb6c78553572b649f106580 CRs-fixed: 734301
-rw-r--r--src/org/codeaurora/bluetooth/a4wp/A4wpService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/codeaurora/bluetooth/a4wp/A4wpService.java b/src/org/codeaurora/bluetooth/a4wp/A4wpService.java
index 4e6ceaa..6a839a2 100644
--- a/src/org/codeaurora/bluetooth/a4wp/A4wpService.java
+++ b/src/org/codeaurora/bluetooth/a4wp/A4wpService.java
@@ -713,7 +713,8 @@ public class A4wpService extends Service
mAdvertiseSettings = new AdvertiseSettings.Builder()
.setAdvertiseMode(AdvertiseSettings.ADVERTISE_MODE_WIPOWER_LATENCY)
.setTxPowerLevel(AdvertiseSettings.ADVERTISE_TX_POWER_ULTRA_LOW)
- .setConnectable(true).build();
+ .setConnectable(true)
+ .setTimeout(WIPOWER_ADV_TIMEOUT).build();
Log.d(LOGTAG, " Calling mAdvertiser.startAdvertising");
mAdvertiser.startAdvertising(mAdvertiseSettings, mAdvertisementData, mAdvertiseCallback);