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:
50ef551
)
Make sure to actually set the link mode option
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 11 Jul 2008 03:00:37 +0000
(
03:00
+0000)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 11 Jul 2008 03:00:37 +0000
(
03:00
+0000)
test/rctest.c
patch
|
blob
|
history
diff --git
a/test/rctest.c
b/test/rctest.c
index
2da87f7
..
08620d4
100644
(file)
--- a/
test/rctest.c
+++ b/
test/rctest.c
@@
-148,6
+148,12
@@
static int do_connect(char *svr)
if (secure)
opt |= RFCOMM_LM_SECURE;
+ if (opt && setsockopt(sk, SOL_RFCOMM, RFCOMM_LM, &opt, sizeof(opt)) < 0) {
+ syslog(LOG_ERR, "Can't set RFCOMM link mode: %s (%d)",
+ strerror(errno), errno);
+ goto error;
+ }
+
/* Connect to remote device */
memset(&addr, 0, sizeof(addr));
addr.rc_family = AF_BLUETOOTH;