nimble: Add experimental tag for BIGInfo syscfgs

This adds "experimental" tag for BIGInfo sycfgs and changes the
name of host's syscfg to describe it better.
This commit is contained in:
Michal Gorecki
2023-06-05 13:11:58 +02:00
committed by Andrzej Kaczmarek
parent 9ae4f9d278
commit a366af0d4b
7 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -367,7 +367,8 @@ syscfg.defs:
description: >
This option is used to enable/disable support for
handling BIGInfo data
value: MYNEWT_VAL(BLE_BIGINFO_REPORTS)
value: MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
experimental: 1
BLE_LL_SCAN_AUX_SEGMENT_CNT:
description: >
+1 -1
View File
@@ -983,7 +983,7 @@ struct ble_gap_event {
} periodic_transfer;
#endif
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
/**
* Represents a periodic advertising sync transfer received. Valid for
* the following event types:
+1 -1
View File
@@ -1853,7 +1853,7 @@ ble_gap_rx_periodic_adv_sync_transfer(const struct ble_hci_ev_le_subev_periodic_
}
#endif
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
void
ble_gap_rx_biginfo_adv_rpt(const struct ble_hci_ev_le_subev_biginfo_adv_report *ev)
{
+1 -1
View File
@@ -88,7 +88,7 @@ void ble_gap_rx_periodic_adv_rpt(const struct ble_hci_ev_le_subev_periodic_adv_r
void ble_gap_rx_periodic_adv_sync_lost(const struct ble_hci_ev_le_subev_periodic_adv_sync_lost *ev);
void ble_gap_rx_periodic_adv_sync_transfer(const struct ble_hci_ev_le_subev_periodic_adv_sync_transfer *ev);
#endif
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
void ble_gap_rx_biginfo_adv_rpt(const struct ble_hci_ev_le_subev_biginfo_adv_report *ev);
#endif
void ble_gap_rx_scan_req_rcvd(const struct ble_hci_ev_le_subev_scan_req_rcvd *ev);
+3 -3
View File
@@ -63,7 +63,7 @@ static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_periodic_adv_rpt;
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_periodic_adv_sync_lost;
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_scan_req_rcvd;
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_periodic_adv_sync_transfer;
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_biginfo_adv_report;
#endif
#if MYNEWT_VAL(BLE_POWER_CONTROL)
@@ -131,7 +131,7 @@ static ble_hs_hci_evt_le_fn * const ble_hs_hci_evt_le_dispatch[] = {
[BLE_HCI_LE_SUBEV_ADV_SET_TERMINATED] = ble_hs_hci_evt_le_adv_set_terminated,
[BLE_HCI_LE_SUBEV_SCAN_REQ_RCVD] = ble_hs_hci_evt_le_scan_req_rcvd,
[BLE_HCI_LE_SUBEV_PERIODIC_ADV_SYNC_TRANSFER] = ble_hs_hci_evt_le_periodic_adv_sync_transfer,
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
[BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT] = ble_hs_hci_evt_le_biginfo_adv_report,
#endif
#if MYNEWT_VAL(BLE_POWER_CONTROL)
@@ -729,7 +729,7 @@ ble_hs_hci_evt_le_periodic_adv_sync_transfer(uint8_t subevent, const void *data,
return 0;
}
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
static int
ble_hs_hci_evt_le_biginfo_adv_report(uint8_t subevent, const void *data,
unsigned int len)
+1 -1
View File
@@ -261,7 +261,7 @@ ble_hs_startup_le_set_evmask_tx(void)
}
#endif
#if MYNEWT_VAL(BLE_BIGINFO_REPORTS)
#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS)
if (version >= BLE_HCI_VER_BCS_5_2) {
/**
* Enable the following LE events:
+2 -1
View File
@@ -68,13 +68,14 @@ syscfg.defs:
restrictions:
- 'BLE_PERIODIC_ADV if 1'
- '(BLE_ROLE_CENTRAL || BLE_ROLE_PERIPHERAL) if 1'
BLE_BIGINFO_REPORTS:
BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS:
description: >
This enables BIGInfo reports.
value: 0
restrictions:
- 'BLE_PERIODIC_ADV if 1'
- '(BLE_VERSION >= 52) if 1'
experimental: 1
BLE_EXT_ADV_MAX_SIZE:
description: >
This allows to configure maximum size of advertising data and