nrfxlib API 0.1.0
|
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.
[in] | p_frame | Pointer to the buffer that contains the PHR and PSDU of the transmitted frame. |
[in] | p_params | Pointer to the transmission parameters. |
[in] | notify_function | Function to be called to notify transmission failure. |
false | Frame security header was not processed successfully. |
true | Frame security header was processed successfully. |