Skip to content

Commit 88e239d

Browse files
author
Juha Heiskanen
authored
Merge pull request ARMmbed#1798 from ARMmbed/enhanced_ack_send
MAC Enhanced ACK TX fix:
2 parents 08d5584 + 11fb5fa commit 88e239d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,6 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, const m
17371737
if (rf_ptr->active_pd_data_request) {
17381738
mac_pd_sap_set_phy_tx_time(rf_ptr, 0, false);
17391739
}
1740-
17411740
return mcps_pd_data_cca_trig(rf_ptr, buffer);
17421741
}
17431742

@@ -1814,12 +1813,14 @@ static int8_t mcps_pd_data_cca_trig(protocol_interface_rf_mac_setup_s *rf_ptr, m
18141813
bool cca_enabled;
18151814
if (buffer->fcf_dsn.frametype == MAC_FRAME_ACK) {
18161815
cca_enabled = false;
1816+
rf_ptr->mac_ack_tx_active = true;
18171817
} else {
18181818
cca_enabled = true;
18191819
}
18201820
mac_pd_sap_set_phy_tx_time(rf_ptr, buffer->tx_time, cca_enabled);
18211821
if (mac_plme_cca_req(rf_ptr) != 0) {
18221822
rf_ptr->macTxProcessActive = false;
1823+
rf_ptr->mac_ack_tx_active = false;
18231824
return -1;
18241825
}
18251826
} else {

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,6 @@ int8_t mac_pd_sap_data_cb(void *identifier, arm_phy_sap_msg_t *message)
617617
if (mcps_generic_ack_build(rf_ptr, &fcf_read, pd_data_ind->data_ptr, &ack_payload, time_stamp) !=0) {
618618
return -1;
619619
}
620-
621-
rf_ptr->mac_ack_tx_active = true;
622620
}
623621
}
624622

0 commit comments

Comments
 (0)