diff options
author | Frédéric Danis <frederic.danis@collabora.com> | 2024-03-07 19:42:05 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-03-08 18:22:17 +0300 |
commit | 2ab3e8d67fc1d4a7638b769cf83023ec209fc0a9 (patch) | |
tree | d17f36fb4c3eab6223d7c3bebc3ff390585ee369 /mm/dmapool_test.c | |
parent | 42ed95de82c01184a88945d3ca274be6a7ea607d (diff) | |
download | linux-2ab3e8d67fc1d4a7638b769cf83023ec209fc0a9.tar.xz |
Bluetooth: Fix eir name length
According to Section 1.2 of Core Specification Supplement Part A the
complete or short name strings are defined as utf8s, which should not
include the trailing NULL for variable length array as defined in Core
Specification Vol1 Part E Section 2.9.3.
Removing the trailing NULL allows PTS to retrieve the random address based
on device name, e.g. for SM/PER/KDU/BV-02-C, SM/PER/KDU/BV-08-C or
GAP/BROB/BCST/BV-03-C.
Fixes: f61851f64b17 ("Bluetooth: Fix append max 11 bytes of name to scan rsp data")
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'mm/dmapool_test.c')
0 files changed, 0 insertions, 0 deletions