summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-03-21 14:13:46 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-03-21 14:13:46 +0000
commit8ab4acd91521e11b769c8b1d2c89a40cf9077396 (patch)
tree43de8b7daf1a2118938e61338928c1c97be6729f
parenta942007d8dcf712b7b764b11ee95d7675d9dbc73 (diff)
Use R1 for default value of pscan_rep_mode
-rw-r--r--src/hci.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/hci.c b/src/hci.c
index abcfb447..312c748e 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -703,11 +703,12 @@ int hci_create_connection(int dd, const bdaddr_t *ba, uint16_t ptype, uint16_t c
create_conn_cp cp;
struct hci_request rq;
- memset(&cp, 0, sizeof(cp));
- bacpy(&cp.bdaddr, ba);
- cp.pkt_type = ptype;
- cp.clock_offset = clkoffset;
- cp.role_switch = rswitch;
+ memset(&cp, 0, sizeof(cp));
+ bacpy(&cp.bdaddr, ba);
+ cp.pkt_type = ptype;
+ cp.pscan_rep_mode = 0x01;
+ cp.clock_offset = clkoffset;
+ cp.role_switch = rswitch;
memset(&rq, 0, sizeof(rq));
rq.ogf = OGF_LINK_CTL;