projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
826695c
)
adapter: Add adv data custom name handling logic
03/288403/2
accepted/tizen/unified/20230303.162748
author
Wootak Jung
<wootak.jung@samsung.com>
Thu, 16 Feb 2023 06:36:58 +0000
(15:36 +0900)
committer
Wootak Jung
<wootak.jung@samsung.com>
Mon, 20 Feb 2023 07:22:10 +0000
(07:22 +0000)
If the name filed is not empty, custom name is already set
Change-Id: Icf5aac6275fc09a3090a47283c994fbc69c9d7c3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
397f597
..
0f1108f
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-4346,7
+4346,7
@@
static int set_adv_data_device_name(uint8_t *adv_data, int adv_len, char *name)
ad_len = data[i];
ad_type = data[i + 1];
- if (ad_type == EIR_NAME_COMPLETE) {
+ if (ad_type == EIR_NAME_COMPLETE
&& ad_len == 1
) {
/* Move to last position and update local name */
for (j = i; j < adv_len - 2; j++)
adv_data[j] = data[j + 2];