Skip to content

Commit abee481

Browse files
author
Juha Heiskanen
committed
Fix merge compile problems
Change-Id: I4ef7af5e7ef0daacbbec01ea45906bf7e8afa931
1 parent 2c77c37 commit abee481

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

source/6LoWPAN/Thread/thread_router_bootstrap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,9 +1562,9 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
15621562
if (thread_am_reed(cur)) {
15631563
if (thread_router_parent_address_check(cur, mle_msg->packet_src_address)) {
15641564
tr_debug("Child ID req from own parent -> connection error");
1565-
entry_temp = mle_class_get_entry_by_ll64(cur->id, linkMargin, mle_msg->packet_src_address, false, NULL);
1565+
entry_temp = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), mle_msg->packet_src_address, false, NULL);
15661566
if (entry_temp) {
1567-
mle_class_remove_entry(cur->id, entry_temp);
1567+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur), entry_temp);
15681568
}
15691569
thread_bootstrap_connection_error(cur->id, CON_PARENT_CONNECT_DOWN, NULL);
15701570
return;
@@ -1908,7 +1908,7 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
19081908
if (mle_tlv_read_8_bit_tlv(MLE_TYPE_STATUS, mle_msg->data_ptr, mle_msg->data_length, &status)) {
19091909
if (1 == status && thread_check_is_this_my_parent(cur, entry_temp)) {
19101910
tr_debug("Parent has removed REED");
1911-
mle_class_remove_entry(cur->id, entry_temp);
1911+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur), entry_temp);
19121912
thread_bootstrap_connection_error(cur->id, CON_PARENT_CONNECT_DOWN, NULL);
19131913
}
19141914
return;

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ static int8_t mcps_generic_packet_rebuild(protocol_interface_rf_mac_setup_s *rf_
18041804
static int8_t mcps_pd_data_cca_trig(protocol_interface_rf_mac_setup_s *rf_ptr, mac_pre_build_frame_t *buffer)
18051805
{
18061806
mac_mlme_mac_radio_enable(rf_ptr);
1807-
1807+
rf_ptr->macTxProcessActive = true;
18081808
if (rf_ptr->rf_csma_extension_supported) {
18091809
//Write TX time
18101810
bool cca_enabled;
@@ -1815,12 +1815,13 @@ static int8_t mcps_pd_data_cca_trig(protocol_interface_rf_mac_setup_s *rf_ptr, m
18151815
}
18161816
mac_pd_sap_set_phy_tx_time(rf_ptr, buffer->tx_time, cca_enabled);
18171817
if (mac_plme_cca_req(rf_ptr) != 0) {
1818+
rf_ptr->macTxProcessActive = false;
18181819
return -1;
18191820
}
18201821
} else {
18211822
timer_mac_start(rf_ptr, MAC_TIMER_CCA, (uint16_t)(buffer->tx_time / 50));
18221823
}
1823-
rf_ptr->macTxProcessActive = true;
1824+
18241825
return 0;
18251826
}
18261827

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ void mac_pd_sap_state_machine(protocol_interface_rf_mac_setup_s *rf_mac_setup)
264264
} else if (rf_mac_setup->mac_tx_result == MAC_TIMER_ACK) {
265265
mac_data_interface_tx_done_cb(rf_mac_setup,PHY_LINK_TX_FAIL, 0, 0 );
266266
}
267-
} else {
268-
tr_debug("State machine %u, %u, %u", rf_mac_setup->mac_tx_result, rf_mac_setup->macUpState, rf_mac_setup->macTxProcessActive);
269267
}
270268
}
271269

@@ -380,7 +378,6 @@ static int8_t mac_data_interface_tx_done_cb(protocol_interface_rf_mac_setup_s *r
380378
if (rf_ptr->active_pd_data_request->fcf_dsn.securityEnabled) {
381379
uint32_t current_counter = mac_mlme_framecounter_get(rf_ptr);
382380
if (mac_data_counter_too_small(current_counter, rf_ptr->active_pd_data_request->aux_header.frameCounter)) {
383-
tr_debug("HOXS counter %u < ack counter %u", rf_ptr->active_pd_data_request->aux_header.frameCounter, rf_ptr->security_frame_counter);
384381
rf_ptr->active_pd_data_request->aux_header.frameCounter = current_counter;
385382
mac_mlme_framecounter_increment(rf_ptr);
386383
}
@@ -708,7 +705,6 @@ int8_t mac_pd_sap_data_cb(void *identifier, arm_phy_sap_msg_t *message)
708705

709706
//Parse IE Elements
710707
if (!mac_header_information_elements_parse(buffer)) {
711-
tr_debug("Drop by IE");
712708
goto ERROR_HANDLER;
713709
}
714710

0 commit comments

Comments
 (0)