diff options
author | Ashwini Munigala <AshwiniM@codeaurora.org> | 2014-11-14 11:12:53 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-11-14 02:50:49 -0800 |
commit | 2f68ebcfd8f54f7dec086a46485109ef61106bbd (patch) | |
tree | 5a4f8737b640d5ffe86f4c6c407f47de528bc18d | |
parent | f0691ff9990409d8d5d25642370c4959f5984a56 (diff) | |
download | android_frameworks_opt_bluetooth-2f68ebcfd8f54f7dec086a46485109ef61106bbd.tar.gz android_frameworks_opt_bluetooth-2f68ebcfd8f54f7dec086a46485109ef61106bbd.tar.bz2 android_frameworks_opt_bluetooth-2f68ebcfd8f54f7dec086a46485109ef61106bbd.zip |
MAPC: Include ParameterMask Header in GET only when specified.
Include ParmaterMask in GET MessageLising Request only when
specific values are selected from TestClient.
ParameterMask is not a mandatory feild as per MAP1.1 Spec.
Excluding ParameterMask for default or value '0' fix MSE IOT
issues that doesnot support ParameterMask Header.
Change-Id: I889b84b2b389c8f24c592fbf846f0284d00f038c
CRs-fixed: 755981
-rw-r--r-- | src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java b/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java index b0c3ce5..991efa1 100644 --- a/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java +++ b/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java @@ -97,7 +97,9 @@ final class BluetoothMasRequestGetMessagesListing extends BluetoothMasRequest { oap.add(OAP_TAGID_SUBJECT_LENGTH, (byte) subjectLength); } - oap.add(OAP_TAGID_PARAMETER_MASK, parameters); + if (parameters > 0 ) { + oap.add(OAP_TAGID_PARAMETER_MASK, parameters); + } if (maxListCount >= 0) { oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) maxListCount); |