Skip to content

Commit

Permalink
MAC Enhanced ACK TX fix:
Browse files Browse the repository at this point in the history
Activated active ack send flag before CCA/TX start.

Change-Id: I345c9aa9106ccf6dec6aa3122c7b0233fe181522
  • Loading branch information
Juha Heiskanen committed Aug 27, 2018
1 parent 08d5584 commit 11fb5fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/MAC/IEEE802_15_4/mac_mcps_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,6 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, const m
if (rf_ptr->active_pd_data_request) {
mac_pd_sap_set_phy_tx_time(rf_ptr, 0, false);
}

return mcps_pd_data_cca_trig(rf_ptr, buffer);
}

Expand Down Expand Up @@ -1814,12 +1813,14 @@ static int8_t mcps_pd_data_cca_trig(protocol_interface_rf_mac_setup_s *rf_ptr, m
bool cca_enabled;
if (buffer->fcf_dsn.frametype == MAC_FRAME_ACK) {
cca_enabled = false;
rf_ptr->mac_ack_tx_active = true;
} else {
cca_enabled = true;
}
mac_pd_sap_set_phy_tx_time(rf_ptr, buffer->tx_time, cca_enabled);
if (mac_plme_cca_req(rf_ptr) != 0) {
rf_ptr->macTxProcessActive = false;
rf_ptr->mac_ack_tx_active = false;
return -1;
}
} else {
Expand Down
2 changes: 0 additions & 2 deletions source/MAC/IEEE802_15_4/mac_pd_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,6 @@ int8_t mac_pd_sap_data_cb(void *identifier, arm_phy_sap_msg_t *message)
if (mcps_generic_ack_build(rf_ptr, &fcf_read, pd_data_ind->data_ptr, &ack_payload, time_stamp) !=0) {
return -1;
}

rf_ptr->mac_ack_tx_active = true;
}
}

Expand Down

0 comments on commit 11fb5fa

Please sign in to comment.