From 8ab4acd91521e11b769c8b1d2c89a40cf9077396 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 21 Mar 2003 14:13:46 +0000 Subject: Use R1 for default value of pscan_rep_mode --- src/hci.c | 11 ++++++----- 1 file 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; -- cgit