OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42817e6
)
android: Set pairable mode only if it is not set
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 31 Oct 2013 13:15:09 +0000
(14:15 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 31 Oct 2013 13:46:30 +0000
(15:46 +0200)
There is no need to set already set setting.
android/adapter.c
patch
|
blob
|
history
diff --git
a/android/adapter.c
b/android/adapter.c
index
b8c73d7
..
02f356d
100644
(file)
--- a/
android/adapter.c
+++ b/
android/adapter.c
@@
-536,7
+536,8
@@
static void read_info_complete(uint8_t status, uint16_t length, const void *para
if (missing_settings & MGMT_SETTING_SSP)
set_mode(MGMT_OP_SET_SSP, 0x01);
- set_mode(MGMT_OP_SET_PAIRABLE, 0x01);
+ if (missing_settings & MGMT_SETTING_PAIRABLE)
+ set_mode(MGMT_OP_SET_PAIRABLE, 0x01);
return;