From 4120b11310e5e8355098ce6be8df06958491d1a6 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Thu, 19 Apr 2018 00:58:58 +0200 Subject: [PATCH] nimble/host: Fix build with ext adv disabled --- nimble/host/src/ble_gap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 4ee726684..cbc7fb81c 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -1349,7 +1349,7 @@ ble_gap_rx_conn_complete(struct hci_le_conn_complete *evt, uint8_t instance) */ #if !MYNEWT_VAL(BLE_EXT_ADV) if (ble_gap_adv_active()) { - ble_gap_adv_finished(0, 0, 0); + ble_gap_adv_finished(0, 0, 0, 0); } #endif break; @@ -1588,7 +1588,7 @@ ble_gap_slave_timer(void) ble_gap_slave_reset_state(0); /* Indicate to application that advertising has stopped. */ - ble_gap_adv_finished(0, BLE_HS_ETIMEOUT, 0); + ble_gap_adv_finished(0, BLE_HS_ETIMEOUT, 0, 0); return BLE_HS_FOREVER; }