Skip to content

Commit 58dee79

Browse files
committed
Bluetooth: controller: df: Add const to antenna patterns pointer
Add const qualifier in radio API related with setting antenna switch pattern. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 0639afa commit 58dee79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void radio_df_ant_switch_pattern_clear(void)
316316
NRF_RADIO->CLEARPATTERN = RADIO_CLEARPATTERN_CLEARPATTERN_Clear;
317317
}
318318

319-
void radio_df_ant_switch_pattern_set(uint8_t *patterns, uint8_t len)
319+
void radio_df_ant_switch_pattern_set(const uint8_t *patterns, uint8_t len)
320320
{
321321
/* SWITCHPATTERN is like a moving pointer to underlying buffer.
322322
* Each write stores a value and moves the pointer to new free position.

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void radio_df_ant_switch_pattern_clear(void);
3939
* Radio internal list. Before start of new patterns clear the list
4040
* by call to @ref radio_df_ant_switch_pattern_clear.
4141
*/
42-
void radio_df_ant_switch_pattern_set(uint8_t *patterns, uint8_t len);
42+
void radio_df_ant_switch_pattern_set(const uint8_t *patterns, uint8_t len);
4343
/* Provides switch pattern of antenna used to transmit PDU that is used to
4444
* transmit CTE
4545
*/

0 commit comments

Comments
 (0)