OSDN Git Service

obexd: Fix FILTER_ALL in MAP client to set 16 bit
authorChristian Fetzer <christian.fetzer@bmw-carit.de>
Fri, 11 Jan 2013 15:55:53 +0000 (16:55 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 14 Jan 2013 15:42:04 +0000 (17:42 +0200)
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.

obexd/client/map.c

index afb5f9a..cea9369 100644 (file)
@@ -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