nimble/host: Fix build for extended scan

This eliminates "declared but not used" warnings.
This commit is contained in:
Michal Gorecki
2024-09-09 15:35:03 +02:00
committed by m-gorecki
parent 7af0b740ab
commit dd1d28b07a
+4
View File
@@ -202,9 +202,11 @@ struct ble_gap_slave_state {
static bssnz_t struct ble_gap_slave_state ble_gap_slave[BLE_ADV_INSTANCES];
#if NIMBLE_BLE_ADVERTISE
#if MYNEWT_VAL(BLE_EXT_ADV)
static bool ext_adv_legacy_configured = false;
#endif
#endif
struct ble_gap_update_entry {
SLIST_ENTRY(ble_gap_update_entry) next;
@@ -2914,6 +2916,7 @@ done:
#endif
}
#if NIMBLE_BLE_ADVERTISE
#if MYNEWT_VAL(BLE_EXT_ADV)
static int
ble_gap_ext_adv_legacy_preconfigure(void)
@@ -2945,6 +2948,7 @@ ble_gap_ext_adv_legacy_preconfigure(void)
return 0;
}
#endif
#endif
int
ble_gap_adv_set_data(const uint8_t *data, int data_len)