@@ -465,7 +465,7 @@ void on_nble_gap_adv_report_evt(const struct nble_gap_adv_report_evt *evt,
465
465
check_pending_conn (& evt -> addr , & evt -> addr , evt -> adv_type );
466
466
#endif /* CONFIG_BLUETOOTH_CENTRAL */
467
467
}
468
-
468
+ #if 0
469
469
static int set_random_address (const bt_addr_t * addr )
470
470
{
471
471
struct nble_set_bda_req req = {0 };
@@ -486,6 +486,7 @@ static int le_set_nrpa(void)
486
486
487
487
return set_random_address (& nrpa );
488
488
}
489
+ #endif
489
490
490
491
#if defined(CONFIG_BLUETOOTH_PRIVACY )
491
492
int le_set_rpa (void )
@@ -504,6 +505,7 @@ static int start_le_scan(uint8_t scan_type, uint16_t interval, uint16_t window,
504
505
uint8_t filter_dup )
505
506
{
506
507
struct nble_gap_start_scan_req params ;
508
+ #if 0
507
509
int err ;
508
510
509
511
#if defined(CONFIG_BLUETOOTH_PRIVACY )
@@ -522,7 +524,7 @@ static int start_le_scan(uint8_t scan_type, uint16_t interval, uint16_t window,
522
524
}
523
525
}
524
526
#endif
525
-
527
+ #endif
526
528
params .scan_params .interval = interval ;
527
529
params .scan_params .window = window ;
528
530
params .scan_params .scan_type = scan_type ;
@@ -594,13 +596,15 @@ static void nble_get_bda_cb_init(const bt_addr_le_t *bda, void *user_data)
594
596
595
597
static int common_init (void )
596
598
{
599
+ #if 0
597
600
struct nble_get_bda_req req ;
598
601
599
602
req .cb = nble_get_bda_cb_init ;
600
603
req .user_data = NULL ;
601
604
602
605
/* read nble identity address */
603
606
nble_get_bda_req (& req );
607
+ #endif
604
608
return 0 ;
605
609
}
606
610
@@ -1179,6 +1183,7 @@ void bt_le_set_mac_address(bt_addr_le_t bda)
1179
1183
params .bda = bda ;
1180
1184
1181
1185
nble_set_bda_req (& params );
1186
+ nble_get_bda_cb_init (& bda , NULL );
1182
1187
}
1183
1188
1184
1189
void on_nble_common_rsp (const struct nble_common_rsp * rsp )
0 commit comments