Bluetooth: Controller: Review rework fixes and adding const qualifiers

Review rework fixes and adding const qualifiers.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-10-27 06:20:14 +05:30 committed by Carles Cufí
commit 311d6da337
6 changed files with 49 additions and 44 deletions

View file

@ -5200,11 +5200,10 @@ static uint8_t ext_adv_data_get(const struct node_rx_pdu *node_rx_data,
hdr_len = ptr - (uint8_t *)p;
hdr_buf_len = PDU_AC_EXT_HEADER_SIZE_MIN + p->ext_hdr_len;
if (hdr_len < hdr_buf_len) {
/* ACAD */
uint8_t len = hdr_buf_len - hdr_len;
uint8_t acad_len = hdr_buf_len - hdr_len;
ptr += len;
hdr_len += len;
ptr += acad_len;
hdr_len += acad_len;
}
no_ext_hdr:
@ -5304,9 +5303,8 @@ static void ext_adv_pdu_frag(uint8_t evt_type, uint8_t phy, uint8_t sec_phy,
const uint8_t **const data, struct net_buf *buf,
struct net_buf **const evt_buf)
{
uint8_t data_len_frag;
const uint8_t data_len_frag = MIN(*data_len, data_len_max);
data_len_frag = MIN(*data_len, data_len_max);
do {
ext_adv_info_fill(evt_type, phy, sec_phy, adv_addr_type,
adv_addr, direct_addr_type, direct_addr,