Bluetooth: controller: added Kconfig for max adv data length

Added a Kconfig for maximum advertising data length.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-05-04 12:56:50 +05:30 committed by Carles Cufí
commit a682fe63eb
2 changed files with 9 additions and 3 deletions

View file

@ -486,9 +486,16 @@ config BT_CTLR_ADV_SYNC_SET
help
Maximum supported periodic advertising sets.
config BT_CTLR_ADV_DATA_LEN_MAX
int "Maximum Advertising Data Length"
depends on BT_CTLR_ADV_EXT
range 31 1650
help
Maximum Extended Advertising Data Length.
config BT_CTLR_SCAN_AUX_SET
int "Auxiliary Channel Scan Sets"
depends on BT_CTLR_ADV_EXT
depends on BT_OBSERVER && BT_CTLR_ADV_EXT
range 1 64
help
Maximum supported auxiliary channel scan sets.

View file

@ -494,8 +494,7 @@ uint8_t ll_adv_aux_sr_data_set(uint8_t handle, uint8_t op, uint8_t frag_pref, ui
uint16_t ll_adv_aux_max_data_length_get(void)
{
/* TODO: return a Kconfig value */
return 0;
return CONFIG_BT_CTLR_ADV_DATA_LEN_MAX;
}
#endif /* (CONFIG_BT_CTLR_ADV_AUX_SET > 0) */