diff options
author | Hemant Gupta <hemantg@codeaurora.org> | 2015-08-05 15:03:39 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:23:57 -0600 |
commit | 66a3f0c874aa4ab81a247a432b0da2bf16e725b3 (patch) | |
tree | c519ff139bcaccb50f7c73cd4f066c54967845e0 | |
parent | 34906a912695bbbf95d8f8d32e173a6bf1a35cde (diff) | |
download | android_frameworks_opt_bluetooth-66a3f0c874aa4ab81a247a432b0da2bf16e725b3.tar.gz android_frameworks_opt_bluetooth-66a3f0c874aa4ab81a247a432b0da2bf16e725b3.tar.bz2 android_frameworks_opt_bluetooth-66a3f0c874aa4ab81a247a432b0da2bf16e725b3.zip |
PBAPC: Use maxlistcount set by upper layers
This patch fixes the maxListCount being sent to remote PBAP Server
for PullPhonebook Request. Without this patch, maxListCount was
being sent as 65535 when upper layers was setting it as 0 resulting in
PTS test case PCE_PBD_BV_04_C failure
Change-Id: I7312087a4cc7d4127dad38eb843e5f361fef5ccd
-rw-r--r-- | src/android/bluetooth/client/pbap/BluetoothPbapRequestPullPhoneBook.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullPhoneBook.java b/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullPhoneBook.java index 15954b1..cddf567 100644 --- a/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullPhoneBook.java +++ b/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullPhoneBook.java @@ -72,11 +72,7 @@ final class BluetoothPbapRequestPullPhoneBook extends BluetoothPbapRequest { * maxListCount is a special case which is handled in * BluetoothPbapRequestPullPhoneBookSize */ - if (maxListCount > 0) { - oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) maxListCount); - } else { - oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) 65535); - } + oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) maxListCount); if (listStartOffset > 0) { oap.add(OAP_TAGID_LIST_START_OFFSET, (short) listStartOffset); |