diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-03-21 18:21:32 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-22 21:49:53 +0200 |
commit | 76b9efbadcd4ca66c8609ef24265d9c74070c3c4 (patch) | |
tree | 3d4d9ad32614a01c7299a9c61692003b176861f0 /src/eir.c | |
parent | 0416bd086b743b74a2745dd4538a07184ee6ef2e (diff) | |
download | bluez-76b9efbadcd4ca66c8609ef24265d9c74070c3c4.tar.gz |
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 (limited to 'src/eir.c')
-rw-r--r-- | src/eir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -141,7 +141,7 @@ void eir_parse(struct eir_data *eir, const uint8_t *eir_data, uint8_t eir_len) { uint16_t len = 0; - eir->flags = -1; + eir->flags = 0; eir->tx_power = 127; /* No EIR data to parse */ |