From: Christian Fetzer Date: Fri, 11 Jan 2013 15:55:53 +0000 (+0100) Subject: obexd: Fix FILTER_ALL in MAP client to set 16 bit X-Git-Tag: android-x86-4.4-r3~8810 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=90322684e0adef156d0be8499cc3558bb56bf122;p=android-x86%2Fexternal-bluetooth-bluez.git obexd: Fix FILTER_ALL in MAP client to set 16 bit The MAP specification defines ParameterMask as a bitmask of 32 bit / 4 bytes. For the lower 16 bit the specification defines parameters, the higher 16 bit remain reserved for future use. Therefore FILTER_ALL is set to 0x0000FFFF. (Reserved bits have to be set to 0) In addition this fixes the issue that ListFilterFields didn't show all fields. --- diff --git a/obexd/client/map.c b/obexd/client/map.c index afb5f9ac6..cea9369d5 100644 --- a/obexd/client/map.c +++ b/obexd/client/map.c @@ -75,7 +75,7 @@ static const char * const filter_list[] = { }; #define FILTER_BIT_MAX 15 -#define FILTER_ALL 0xFF +#define FILTER_ALL 0x0000FFFF #define STATUS_READ 0 #define STATUS_DELETE 1