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:
60bad23
)
tools/btpclient: Fix setting/reseting connectable flag
34/205034/1
author
Grzegorz Kolodziejczyk
<grzegorz.kolodziejczyk@codecoup.pl>
Fri, 12 Jan 2018 14:10:09 +0000
(15:10 +0100)
committer
Amit Purwar
<amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:15:15 +0000
(09:45 +0530)
Defined setting flag is presented as mask.
Change-Id: Ib4561f41c40a1ea83ea76cb1a7ff84494eda871f
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
tools/btpclient.c
patch
|
blob
|
history
diff --git
a/tools/btpclient.c
b/tools/btpclient.c
index
806403f
..
a8a65fd
100644
(file)
--- a/
tools/btpclient.c
+++ b/
tools/btpclient.c
@@
-368,9
+368,9
@@
static void btp_gap_set_connectable(uint8_t index, const void *param,
new_settings = adapter->current_settings;
if (cp->connectable)
- new_settings |=
1 <<
BTP_GAP_SETTING_CONNECTABLE;
+ new_settings |= BTP_GAP_SETTING_CONNECTABLE;
else
- new_settings &= ~
(1 << BTP_GAP_SETTING_CONNECTABLE)
;
+ new_settings &= ~
BTP_GAP_SETTING_CONNECTABLE
;
update_current_settings(adapter, new_settings);