Skip to content

Commit 1049c6a

Browse files
e-rkrlubos
authored andcommitted
[nrf fromlist] modules: hal_nordic: nrf_802154: CCA threshold config in dBm
The nrf-802154 component of hal_nordic is updated. The CCA threshold configuration is now done in dBm units, instead of hardware-dependent scale. Fixed a bug, where the CONFIG_NRF_802154_CCA_ED_THRESHOLD units were different from the NRF_802154_CCA_ED_THRESHOLD units. Now all configuration is done in dBm. Upstream PR #: 90795 Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no> (cherry picked from commit ba8fd23)
1 parent d8b053f commit 1049c6a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/hal_nordic/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ config NRF_802154_CCA_MODE_CARRIER_OR_ED
163163

164164
endchoice
165165

166-
config NRF_802154_CCA_ED_THRESHOLD
167-
int "nRF IEEE 802.15.4 CCA Energy Detection threshold"
168-
default 45
166+
config NRF_802154_CCA_ED_THRESHOLD_DBM
167+
int "nRF IEEE 802.15.4 CCA Energy Detection threshold in dBm"
168+
default -75
169169
help
170170
If energy detected in a given channel is above the value then the
171-
channel is deemed busy. The unit is defined as per 802.15.4-2006 spec.
171+
channel is deemed busy. The unit is dBm.
172172

173173
config NRF_802154_CCA_CORR_THRESHOLD
174174
int "nRF IEEE 802.15.4 CCA Correlator threshold"

modules/hal_nordic/nrf_802154/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ target_compile_definitions(zephyr-802154-interface
5252
# CCA mode options
5353
NRF_802154_CCA_CORR_LIMIT_DEFAULT=${CONFIG_NRF_802154_CCA_CORR_LIMIT}
5454
NRF_802154_CCA_CORR_THRESHOLD_DEFAULT=${CONFIG_NRF_802154_CCA_CORR_THRESHOLD}
55-
NRF_802154_CCA_ED_THRESHOLD_DEFAULT=${CONFIG_NRF_802154_CCA_ED_THRESHOLD}
55+
NRF_802154_CCA_ED_THRESHOLD_DBM_DEFAULT=${CONFIG_NRF_802154_CCA_ED_THRESHOLD_DBM}
5656

5757
# Key storage size
5858
NRF_802154_SECURITY_KEY_STORAGE_SIZE=${CONFIG_NRF_802154_SECURITY_KEY_STORAGE_SIZE}

0 commit comments

Comments
 (0)