diff options
author | Frédéric Danis <frederic.danis@collabora.com> | 2024-03-07 17:42:05 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-03-08 10:22:17 -0500 |
commit | 2ab3e8d67fc1d4a7638b769cf83023ec209fc0a9 (patch) | |
tree | d17f36fb4c3eab6223d7c3bebc3ff390585ee369 /net/bluetooth/hci_request.c | |
parent | 42ed95de82c01184a88945d3ca274be6a7ea607d (diff) |
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 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions