Commit: 76b9efbadcd4ca66c8609ef24265d9c74070c3c4
Parent: 0416bd086b743b74a2745dd4538a07184ee6ef2e
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-03-22 21:49:53
Tree: 3d4d9ad32614a01c7299a9c61692003b176861f0

eir: Use unsigned int for flags in struct eir_data This adds assumption that if flags field is not present in EIR all flags are unset: "The Flags data type shall be included when any of the Flag bits are non-zero, otherwise the Flags data type may be omitted." This also fix reporting non-discoverable LE devices as limited discoverable due to no explicit check for flags == -1 as empty flags.

Diffstat

M src/eir.c | 2 +-
M src/eir.h | 2 +-
M unit/test-eir.c | 10 +- - - - - - - - -

3 files changed, 3 insertions(+), 11 deletions(-)

View Full Diff | Patch