From c27f48e42685b1b917bf8570362891d996d3f886 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 27 May 2013 20:29:12 +0300 Subject: [PATCH] emulator: Fix btdev connectability test (0x02 is page scan) --- emulator/btdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 041fe9f7b..d88c853c0 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -662,7 +662,7 @@ static void conn_request(struct btdev *btdev, const uint8_t *bdaddr) struct btdev *remote = find_btdev_by_bdaddr(bdaddr); if (remote) { - if (remote->scan_enable & 0x01) { + if (remote->scan_enable & 0x02) { struct bt_hci_evt_conn_request cr; memcpy(cr.bdaddr, btdev->bdaddr, 6); -- 2.47.3