nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_802154_security_writer_tx_setup()

bool nrf_802154_security_writer_tx_setup ( uint8_t * p_frame,
nrf_802154_transmit_params_t * p_params,
nrf_802154_transmit_failed_notification_t notify_function )

Transmission setup hook for the security writer module.

This hook parses the frame to check availability of the key identified by the frame's security header and injects a frame counter associated with the key. If the frame's security level is zero, then no processing occurs.

If this function detects a malformed frame, the higher layer is notified of transmission failure. A frame is considered malformed if requested key is invalid.

Parameters
[in]p_framePointer to the buffer that contains the PHR and PSDU of the transmitted frame.
[in]p_paramsPointer to the transmission parameters.
[in]notify_functionFunction to be called to notify transmission failure.
Return values
falseFrame security header was not processed successfully.
trueFrame security header was processed successfully.