Skip to content

Commit 85ed44a

Browse files
e-rkcarlescufi
authored andcommitted
[nrf fromtree] modules: hal_nordic: nrf_802154: Add new Kconfig options
The NRF_802154_ENCRYPTION was split into two additional Kconfigs that control separate functionalities: * NRF_802154_IE_WRITER - to enable Information Element writer * NRF_802154_SECURITY_WRITER - to enable frame counter writer Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit 65fae0a)
1 parent a10dc8d commit 85ed44a

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

modules/hal_nordic/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,20 @@ config NRF_802154_PENDING_EXTENDED_ADDRESSES
203203
config NRF_802154_ENCRYPTION
204204
bool "nRF 802.15.4 AES-CCM* authentication & encryption"
205205
depends on !CRYPTO_NRF_ECB
206+
select NRF_802154_IE_WRITER
207+
select NRF_802154_SECURITY_WRITER
208+
help
209+
Enable module for encryption and authentication of outgoing frames and Acks.
210+
211+
config NRF_802154_IE_WRITER
212+
bool "Information element writer"
213+
help
214+
Enable data injection for some Information Element types.
215+
216+
config NRF_802154_SECURITY_WRITER
217+
bool "Security frame counter writer"
218+
help
219+
Enable injection of security frame counter.
206220

207221
config NRF_802154_SECURITY_KEY_STORAGE_SIZE
208222
int "nRF 802.15.4 security key storage size"

modules/hal_nordic/nrf_802154/CMakeLists.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,20 @@ endif()
7070

7171
if (CONFIG_NRF_802154_ENCRYPTION)
7272
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_ENCRYPTION_ENABLED=1)
73-
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_SECURITY_WRITER_ENABLED=1)
74-
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_IE_WRITER_ENABLED=1)
7573
else ()
7674
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_ENCRYPTION_ENABLED=0)
77-
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_SECURITY_WRITER_ENABLED=0)
75+
endif ()
76+
77+
if (CONFIG_NRF_802154_IE_WRITER)
78+
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_IE_WRITER_ENABLED=1)
79+
else ()
7880
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_IE_WRITER_ENABLED=0)
81+
endif ()
82+
83+
if (CONFIG_NRF_802154_SECURITY_WRITER)
84+
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_SECURITY_WRITER_ENABLED=1)
85+
else ()
86+
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_SECURITY_WRITER_ENABLED=0)
7987
endif()
8088

8189
if (NOT CONFIG_IEEE802154_NRF5 AND NOT CONFIG_IEEE802154_NRF5_EXT_IRQ_MGMT AND CONFIG_NRF_802154_SL_OPENSOURCE)

0 commit comments

Comments
 (0)