summaryrefslogtreecommitdiffstats
diff options
context:
space:
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;