How to send NRF5340 TX power data during PAwR?

Below is my change, set options to BT_LE_PER_ADV_OPT_USE_TX_POWER

static const struct bt_le_per_adv_param per_adv_params = {
	.interval_min = 0x0290, 
	.interval_max = 0x0290,   
	//.options = 0,  
	.options = BT_LE_PER_ADV_OPT_USE_TX_POWER, 
	.num_subevents = NUM_SUBEVENTS, 
	.subevent_interval = 0xfa,  
	.response_slot_delay = 0x0f,  
	.response_slot_spacing = 0x15,  
	.num_response_slots = NUM_RSP_SLOTS, 
};

But it always display Failed to set periodic advertising parameters (err -5), why?

00> *** Booting nRF Connect SDK v3.1.0-6c6e5b32496e ***
00> *** Using Zephyr OS v4.1.99-1612683d4010 ***
00> Starting Periodic Advertising Demo
00> [00:00:00.458,129] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
00> [00:00:00.458,160] <inf> bt_hci_core: HW Variant: nRF53x (0x0003)
00> [00:00:00.458,190] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 252.16862 Build 1121034987
00> [00:00:00.460,662] <inf> bt_hci_core: HCI transport: IPC
00> [00:00:00.460,754] <inf> bt_hci_core: Identity: F9:B9:AD:9A:8E:CD (random)
00> [00:00:00.460,784] <inf> bt_hci_core: HCI: version 6.1 (0x0f) revision 0x2069, manufacturer 0x0059
00> [00:00:00.460,815] <inf> bt_hci_core: LMP: version 6.1 (0x0f) subver 0x2069
00> [00:00:00.462,707] <wrn> bt_hci_core: opcode 0x2086 status 0x11 
00> Failed to set periodic advertising parameters (err -5)

My hardware is nrf5340DK, SDK is ncs 3.1 PAwR sample

Related