From 0e55bd6930802c87cc5b0b66bff51cbba4219fe7 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 9 Jun 2017 23:03:04 +0200 Subject: [PATCH] hci: exit hci_run after sending remote name request --- src/hci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hci.c b/src/hci.c index 7693844a5..6bc1c38a0 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2822,6 +2822,7 @@ static void hci_run(void){ hci_stack->remote_name_state = GAP_REMOTE_NAME_STATE_W4_COMPLETE; hci_send_cmd(&hci_remote_name_request, hci_stack->remote_name_addr, hci_stack->remote_name_page_scan_repetition_mode, hci_stack->remote_name_clock_offset); + return; } // pairing if (hci_stack->gap_pairing_state != GAP_PAIRING_STATE_IDLE){