@@ -391,7 +391,7 @@ ble_ll_scan_halt(void)
391391 * @return int 0: have not received a scan response; 1 otherwise.
392392 */
393393int
394- ble_ll_scan_have_rxd_scan_rsp (uint8_t * addr , uint8_t txadd ,
394+ ble_ll_scan_have_rxd_scan_rsp (const uint8_t * addr , uint8_t txadd ,
395395 uint8_t ext_adv , uint16_t adi )
396396{
397397 uint8_t num_advs ;
@@ -435,7 +435,7 @@ ble_ll_scan_have_rxd_scan_rsp(uint8_t *addr, uint8_t txadd,
435435
436436#if MYNEWT_VAL (BLE_LL_CFG_FEAT_LL_EXT_ADV )
437437void
438- ble_ll_scan_add_scan_rsp_adv (uint8_t * addr , uint8_t txadd ,
438+ ble_ll_scan_add_scan_rsp_adv (const uint8_t * addr , uint8_t txadd ,
439439 uint8_t ext_adv , uint16_t adi )
440440{
441441 uint8_t num_advs ;
@@ -1800,7 +1800,8 @@ ble_ll_scan_dup_new(void)
18001800}
18011801
18021802static int
1803- ble_ll_scan_dup_check_legacy (uint8_t addr_type , uint8_t * addr , uint8_t pdu_type )
1803+ ble_ll_scan_dup_check_legacy (uint8_t addr_type , const uint8_t * addr ,
1804+ uint8_t pdu_type )
18041805{
18051806 struct ble_ll_scan_dup_entry * e ;
18061807 uint8_t type ;
@@ -1840,7 +1841,7 @@ ble_ll_scan_dup_check_legacy(uint8_t addr_type, uint8_t *addr, uint8_t pdu_type)
18401841
18411842#if MYNEWT_VAL (BLE_LL_CFG_FEAT_LL_EXT_ADV )
18421843int
1843- ble_ll_scan_dup_check_ext (uint8_t addr_type , uint8_t * addr , bool has_aux ,
1844+ ble_ll_scan_dup_check_ext (uint8_t addr_type , const uint8_t * addr , bool has_aux ,
18441845 uint16_t adi )
18451846{
18461847 struct ble_ll_scan_dup_entry * e ;
@@ -1889,7 +1890,7 @@ ble_ll_scan_dup_check_ext(uint8_t addr_type, uint8_t *addr, bool has_aux,
18891890}
18901891
18911892int
1892- ble_ll_scan_dup_update_ext (uint8_t addr_type , uint8_t * addr , bool has_aux ,
1893+ ble_ll_scan_dup_update_ext (uint8_t addr_type , const uint8_t * addr , bool has_aux ,
18931894 uint16_t adi )
18941895{
18951896 struct ble_ll_scan_dup_entry * e ;
@@ -2010,7 +2011,7 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd
20102011 struct ble_mbuf_hdr_rxinfo * rxinfo = & hdr -> rxinfo ;
20112012#endif
20122013#if MYNEWT_VAL (BLE_LL_ROLE_CENTRAL )
2013- uint8_t * targeta ;
2014+ const uint8_t * targeta ;
20142015#endif
20152016 struct ble_ll_scan_sm * scansm ;
20162017 struct ble_ll_scan_addr_data addrd ;
@@ -2710,7 +2711,7 @@ ble_ll_scan_get_local_rpa(void)
27102711 * @param rpa
27112712 */
27122713void
2713- ble_ll_scan_set_peer_rpa (uint8_t * rpa )
2714+ ble_ll_scan_set_peer_rpa (const uint8_t * rpa )
27142715{
27152716 struct ble_ll_scan_sm * scansm ;
27162717
0 commit comments