Skip to content

Commit

Permalink
MAC: Fixed frame length when calling FHSS TX conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso committed Jun 5, 2018
1 parent 4eb5567 commit c56886f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/MAC/IEEE802_15_4/mac_mcps_sap.c
Expand Up @@ -1844,9 +1844,10 @@ void mcps_sap_pd_req_queue_write(protocol_interface_rf_mac_setup_s *rf_mac_setup
goto push_to_queue;
}
if (rf_mac_setup->fhss_api && (buffer->asynch_request == false)) {
uint16_t frame_length = buffer->mac_payload_length + buffer->headerIeLength + buffer->payloadsIeLength;
if (rf_mac_setup->fhss_api->check_tx_conditions(rf_mac_setup->fhss_api, !mac_is_ack_request_set(buffer),
buffer->msduHandle, mac_convert_frame_type_to_fhss(buffer->fcf_dsn.frametype), buffer->mac_payload_length,
rf_mac_setup->dev_driver->phy_driver->phy_header_length, rf_mac_setup->dev_driver->phy_driver->phy_tail_length) == false) {
buffer->msduHandle, mac_convert_frame_type_to_fhss(buffer->fcf_dsn.frametype), frame_length,
rf_mac_setup->dev_driver->phy_driver->phy_header_length, rf_mac_setup->dev_driver->phy_driver->phy_tail_length) == false) {
goto push_to_queue;
}
}
Expand Down

0 comments on commit c56886f

Please sign in to comment.