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:
5dfed86
)
adapter: Add adv data custom name handling logic
48/289748/1
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>
Tue, 14 Mar 2023 05:33:28 +0000
(14:33 +0900)
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
cf2f1a9
..
77cbd9d
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-4332,7
+4332,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];