]> Git Repo - linux.git/commit
Bluetooth: Fix eir name length
authorFrédéric Danis <[email protected]>
Thu, 7 Mar 2024 16:42:05 +0000 (17:42 +0100)
committerLuiz Augusto von Dentz <[email protected]>
Fri, 8 Mar 2024 15:22:17 +0000 (10:22 -0500)
commit2ab3e8d67fc1d4a7638b769cf83023ec209fc0a9
treed17f36fb4c3eab6223d7c3bebc3ff390585ee369
parent42ed95de82c01184a88945d3ca274be6a7ea607d
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 <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
net/bluetooth/eir.c
net/bluetooth/mgmt.c
This page took 0.050931 seconds and 4 git commands to generate.