Skip to content

Commit c12ed2b

Browse files
anhmolteivindj-nordic
authored andcommitted
lib: ble_adv: remove TODOs
The todos will be addressed at a later point. Signed-off-by: Andreas Moltumyr <[email protected]>
1 parent 19b0ae1 commit c12ed2b

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

include/ble_adv.h

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,11 @@
2727
extern "C" {
2828
#endif
2929

30-
/** TODO: Are we gonna need priorities again?
31-
* If so, this should be a Kconfig!
30+
/**
31+
* @brief Advertising module BLE event observer priority.
3232
*/
3333
#define BLE_ADV_BLE_OBSERVER_PRIO 0
3434

35-
/** TODO: what is the purpose of this library being multi-instance?
36-
* If it's not multi-instace, then let it define its own BLE observer
37-
* and let the application register a handler instead of defining an
38-
* instance with a macro..
39-
*/
40-
4135
/**
4236
* @brief Declare an instance of a BLE advertising library.
4337
*/
@@ -188,7 +182,6 @@ struct ble_adv {
188182
*/
189183
ble_gap_adv_params_t adv_params;
190184

191-
/** TODO: Kconfig */
192185
#ifdef BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED
193186
/** Advertising data sets in encoded form. Current and swap buffer */
194187
uint8_t enc_adv_data[2][BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED];
@@ -345,11 +338,6 @@ int ble_adv_whitelist_reply(struct ble_adv *ble_adv,
345338
*/
346339
int ble_adv_restart_without_whitelist(struct ble_adv *ble_adv);
347340

348-
/** TODO: do we even need this function ?
349-
* It doesn't provide much value on it's only used in one sample in nRF5.
350-
* It's probably just one SD call..
351-
*/
352-
353341
/**@brief Function for updating advertising data.
354342
*
355343
* @details This function can be called if you wish to reconfigure the advertising data The update

lib/ble_adv/ble_adv.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,16 +491,12 @@ int ble_adv_whitelist_reply(struct ble_adv *ble_adv,
491491
return -EPERM;
492492
}
493493

494-
/** TODO: what does whitelist support in this module really do?
495-
* it only seems to change the filter policy...
496-
*/
497494
ble_adv->whitelist_reply_expected = false;
498495
ble_adv->whitelist_in_use = (addr_cnt > 0 || irk_cnt > 0);
499496

500497
return 0;
501498
}
502499

503-
/** TODO: can this be removed? */
504500
int ble_adv_restart_without_whitelist(struct ble_adv *ble_adv)
505501
{
506502
int err;
@@ -524,7 +520,6 @@ int ble_adv_restart_without_whitelist(struct ble_adv *ble_adv)
524520
return 0;
525521
}
526522

527-
/** TODO: can this be removed? */
528523
int ble_adv_data_update(struct ble_adv *ble_adv, const struct ble_adv_data *adv_data,
529524
const struct ble_adv_data *sr_data)
530525
{

0 commit comments

Comments
 (0)