feat(802.15.4): set default pti and ed/cca pti to 3 for 154

This commit is contained in:
zhuanghang
2025-12-29 15:38:48 +08:00
committed by liuning
parent cb683b0192
commit 309882d87c
2 changed files with 4 additions and 2 deletions
@@ -475,8 +475,8 @@ static inline void ieee802154_ll_set_security_key(uint8_t *security_key)
static inline void ieee802154_ll_disable_coex(void)
{
IEEE802154.pti.pti = 1;
IEEE802154.pti.hw_ack_pti = 1;
IEEE802154.pti.pti = 3;
IEEE802154.pti.hw_ack_pti = 3;
}
static inline void ieee802154_ll_clear_debug_cnt(uint32_t clear_bits)
@@ -1177,6 +1177,7 @@ esp_err_t ieee802154_energy_detect(uint32_t duration)
stop_current_operation();
ieee802154_pib_update();
IEEE802154_SET_TXRX_PTI(IEEE802154_SCENE_RX);
start_ed(duration);
ieee802154_set_state(IEEE802154_STATE_ED);
@@ -1193,6 +1194,7 @@ esp_err_t ieee802154_cca(void)
stop_current_operation();
ieee802154_pib_update();
IEEE802154_SET_TXRX_PTI(IEEE802154_SCENE_RX);
start_ed(CCA_DETECTION_TIME);
ieee802154_set_state(IEEE802154_STATE_CCA);