Skip to content

Commit a05605e

Browse files
author
Juha Heiskanen
committed
Unsecured packets will be acked by default automatically.
This will stabilize wi-sun network formation in large network and use EAPOL retry timer's for re-send purpose.
1 parent 36dfb29 commit a05605e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ static void ws_llc_eapol_indication_cb(const mac_api_t *api, const mcps_data_ind
741741
}
742742
//Update Temporary Lifetime
743743
temp_entry->eapol_timeout = interface->ws_info->cfg->timing.temp_eapol_min_timeout + 1;
744-
//SET RX Neighbour
745-
ws_bootstrap_eapol_rx_temporary_set(interface, data->SrcAddr);
746744

747745
neighbor_info.ws_neighbor = &temp_entry->neigh_info_list;
748746
//Storage Signal info for future ETX update possibility

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,16 @@ static int8_t mac_pd_sap_generate_ack(protocol_interface_rf_mac_setup_s *rf_ptr,
806806
return -1;
807807
}
808808

809-
if (mac_sec_mib_device_description_get(rf_ptr, rf_ptr->enhanced_ack_buffer.DstAddr, rf_ptr->enhanced_ack_buffer.fcf_dsn.DstAddrMode, rf_ptr->enhanced_ack_buffer.DstPANId)) {
809+
810+
if (rf_ptr->enhanced_ack_buffer.fcf_dsn.securityEnabled == 0 || rf_ptr->enhanced_ack_buffer.aux_header.securityLevel == 0) {
811+
//Unsecured data will be acked immediately
810812
rf_ptr->ack_tx_possible = true;
811813
} else {
812-
rf_ptr->ack_tx_possible = false;
814+
if (mac_sec_mib_device_description_get(rf_ptr, rf_ptr->enhanced_ack_buffer.DstAddr, rf_ptr->enhanced_ack_buffer.fcf_dsn.DstAddrMode, rf_ptr->enhanced_ack_buffer.DstPANId)) {
815+
rf_ptr->ack_tx_possible = true;
816+
} else {
817+
rf_ptr->ack_tx_possible = false;
818+
}
813819
}
814820

815821
return mcps_generic_ack_build(rf_ptr, true);

0 commit comments

Comments
 (0)