Skip to content

Commit 3b9a9c7

Browse files
author
Arto Kinnunen
committed
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 0903b81..4a3c5c5
4a3c5c5 Merge remote-tracking branch 'origin/release_internal' into release_external 2b8d2e1 Do not reset radio when MAC data request timeouts (ARMmbed#2647) 95c506a Frame counters for nw keys are now stored to NVM only after send key is set (ARMmbed#2641) 3b3010a Adjusted stagger random to [min,min+max] and for small nw set the stagger value to 10 seconds 02bc33a Adjusted security protocol (EAP-TLS,4WH,2WH) retry timers eb26726 High Priority timestamp compare overflow support fix. 928723a FHSS WS: Initialize broadcast channel count when enabling FHSS (ARMmbed#2642) 6040d70 Updated change log 667b191 Changed initial EAPOL-key retries from trickle to exponential backup d925145 Add RTT calculation for DHCP Time calculation 0b82953 Traceroute bug fix. 04de6e2 Merge pull request ARMmbed#2638 from PelionIoT/mbed_os_fix_ufsi_calculation 2012347 Fixed FHSS UFSI calculation unit tests 436f16e Handle timer rollover in calculate_ufsi 411cf5c coding style d6f4421 Correct ufsi timing calculation 560619d Add network time vendor data element to DHCPv6 reply message 6d290dc System time read/write callbacks (ARMmbed#2637) 7905df6 Restart or remove transmission when MAC data request timeouts (ARMmbed#2636) c97695c Bug fix: EAPOL parent compare fix e283e62 Fixed channel mask usage with OFDM configurations (ARMmbed#2633) 24168f8 Do not send too old packets (ARMmbed#2632) dbd83be Fix copyrights (ARMmbed#2631) 7f0cffd Merge pull request ARMmbed#2630 from PelionIoT/use_pelion_copyright 511bd5a Corrected coding style 57ec028 Corrected comparison 7d853de When EAPOL waiting queue is full oldest entry is removed acf580f Update copyright in changed MDNS files 933c0bb Update copyright 3aeb2af Statistics for data request latencies (ARMmbed#2629) 3f7eae6 EAPOL FHSS temp entry discover 5200b66 DHCP time elapsed time write fix. 0536874 Removed empty EAPOL-key message send after 4WH completion to nodes on relay 8a2a683 Fixed DHCP wrong time elapsed value write. 283f2ee DHCPv6 update: 99be778 EAPOL temp neighbour update 4f9e3d1 Adaptation layer to remove oldest packet first 20f1f64 Added ignoring of retry messages from RADIUS server when waiting EAP-TLS 8a8b407 Add RSL check for ETX Calculation for RPL parent selection c05e1da Fix DHCP server Uninitialized memory read 77229ee Fix CPP error from domain prefix check 7e47889 support filtering of EAPOL parents based device-min-sens configuration 618a191 Wi-SUN Expedite forward state update 4371462 Fix NULL read from RPL header addition 7802c7e Update CHANGELOG.md b2c8104 CHANGELOG for Nanostack v13.0.0 (ARMmbed#2615) git-subtree-dir: connectivity/nanostack/sal-stack-nanostack git-subtree-split: 4a3c5c5
1 parent 51247bf commit 3b9a9c7

File tree

537 files changed

+1996
-1185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

537 files changed

+1996
-1185
lines changed

connectivity/nanostack/sal-stack-nanostack/LICENSE-Apache-2.0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2017 Arm Limited and its affiliates
1+
Copyright 2017, Pelion and affiliates.
22
SPDX-License-Identifier: Apache-2.0
33

44
Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/LICENSE-BSD-3-Clause

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2017 Arm Limited and affiliates.
1+
Copyright 2017, Pelion and affiliates.
22
SPDX-License-Identifier: BSD-3-Clause
33

44
Redistribution and use in source and binary forms, with or without

connectivity/nanostack/sal-stack-nanostack/nanostack/cca_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ccmLIB.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2018, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/dhcp_service_api.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -197,11 +197,12 @@ int dhcp_service_send_resp(uint32_t msg_tr_id, uint8_t options, uint8_t *msg_ptr
197197
* \param msg_ptr An allocated message pointer. This pointer is the responsibility of the service after this call.
198198
* \param msg_len The length of the message.
199199
* \param receive_resp_cb Callback pointer
200+
* \param delay_tx Transmit may be delayed and this parameter define that
200201
*
201202
* \return Transaction ID of the DHCP transaction
202203
* \return 0, if error occurred.
203204
*/
204-
uint32_t dhcp_service_send_req(uint16_t instance_id, uint8_t options, void *ptr, const uint8_t addr[static 16], uint8_t *msg_ptr, uint16_t msg_len, dhcp_service_receive_resp_cb *receive_resp_cb);
205+
uint32_t dhcp_service_send_req(uint16_t instance_id, uint8_t options, void *ptr, const uint8_t addr[static 16], uint8_t *msg_ptr, uint16_t msg_len, dhcp_service_receive_resp_cb *receive_resp_cb, uint16_t delay_tx);
205206

206207
/**
207208
* \brief Setting retransmission parameters.
@@ -225,6 +226,16 @@ void dhcp_service_set_retry_timers(uint32_t msg_tr_id, uint16_t timeout_init, ui
225226
*/
226227
void dhcp_service_update_server_address(uint32_t msg_tr_id, uint8_t *server_address);
227228

229+
/**
230+
* \brief Get Round Trip time of the request
231+
*
232+
* get the elapsed time of the request from last message sent to server.
233+
*
234+
* \param msg_tr_id The message transaction ID.
235+
*
236+
*/
237+
uint32_t dhcp_service_rtt_get(uint32_t msg_tr_id);
238+
228239
/**
229240
* \brief Stops transactions for a message (retransmissions).
230241
*

connectivity/nanostack/sal-stack-nanostack/nanostack/ethernet_mac_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/fhss_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2019, 2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/fhss_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2015-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/fhss_test_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Arm Limited and affiliates.
2+
* Copyright (c) 2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/fhss_ws_extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Arm Limited and affiliates.
2+
* Copyright (c) 2018, 2020-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/mac_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2018, 2020-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -325,6 +325,7 @@ typedef struct mac_statistics_s {
325325
uint32_t mac_retry_count; /**< MAC TX retry count. */
326326
uint32_t mac_cca_attempts_count; /**< MAC CCA attempts count. */
327327
uint32_t mac_failed_cca_count; /**< MAC failed CCA count. */
328+
uint32_t mac_tx_latency_max; /**< MAC data request max latency. */
328329
} mac_statistics_t;
329330

330331
#ifdef __cplusplus

connectivity/nanostack/sal-stack-nanostack/nanostack/mac_common_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2018, 2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/mac_filter_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/mac_mcps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2018, 2020-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/mlme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/multicast_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2012-2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_6lowpan_parameter_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2015, 2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2015, 2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_address_extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_fhss.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2015-2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2019, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_ipv6_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2017, 2019-2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_load_balance_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_mle_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_nvm_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2019, 2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_nwk_scan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_pana_parameters_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_polling_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2017, 2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_rpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_sleep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_test_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2018, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/net_thread_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2019, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2019, Pelion and affiliates.
33
* SPDX-License-Identifier: BSD-3-Clause
44
*
55
* Redistribution and use in source and binary forms, with or without

connectivity/nanostack/sal-stack-nanostack/nanostack/net_ws_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2019, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_address.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2010-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Arm Limited and affiliates.
2+
* Copyright (c) 2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_file_system.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Arm Limited and affiliates.
2+
* Copyright (c) 2017, 2019-2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_mdns_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2017-2019, 2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_sha256.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2006-2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_time_api.h

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Arm Limited and affiliates.
2+
* Copyright (c) 2020-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,7 +29,7 @@
2929
#include "ns_types.h"
3030

3131
/**
32-
* System time callback.
32+
* System time read callback.
3333
*
3434
* Callback shall return the system time in seconds after 1970.
3535
*
@@ -39,13 +39,33 @@
3939
typedef uint64_t ns_time_api_system_time_callback(void);
4040

4141
/**
42-
* System time callback set.
42+
* System time write callback.
4343
*
44-
* Sets callback for the system time.
44+
* Callback will write the time in seconds after 1970.
4545
*
46-
* \param callback system time callback
46+
* \param seconds system time in seconds
47+
*
48+
*/
49+
typedef void ns_time_api_system_time_write_callback(uint64_t write_time);
50+
51+
/**
52+
* System time read callback set.
53+
*
54+
* Sets callback for the system time read.
55+
*
56+
* \param callback_rd system time read callback
57+
*
58+
*/
59+
void ns_time_api_system_time_callback_set(ns_time_api_system_time_callback callback_rd);
60+
61+
/**
62+
* Set system time write callback.
63+
*
64+
* Sets system time write callback.
65+
*
66+
* \param callback_wr system time write callback.
4767
*
4868
*/
49-
void ns_time_api_system_time_callback_set(ns_time_api_system_time_callback callback);
69+
void ns_time_api_system_time_write_callback_set(ns_time_api_system_time_write_callback callback_wr);
5070

5171
#endif /* NS_TIME_API_H_ */

connectivity/nanostack/sal-stack-nanostack/nanostack/ns_virtual_rf_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2016-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/nwk_stats_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2013-2017, 2019-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -74,6 +74,7 @@ typedef struct nwk_stats_t {
7474
uint16_t adapt_layer_tx_queue_size; /**< Adaptation layer direct TX queue size. */
7575
uint16_t adapt_layer_tx_queue_peak; /**< Adaptation layer direct TX queue size peak. */
7676
uint32_t adapt_layer_tx_congestion_drop; /**< Adaptation layer direct TX randon early detection drop packet. */
77+
uint16_t adapt_layer_tx_latency_max; /**< Adaptation layer latency between TX request and TX ready in seconds (MAX). */
7778
} nwk_stats_t;
7879

7980
/**

connectivity/nanostack/sal-stack-nanostack/nanostack/platform/arm_hal_aes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2018, 2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/platform/arm_hal_phy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2018, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2021, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/platform/os_whiteboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

connectivity/nanostack/sal-stack-nanostack/nanostack/platform/topo_trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2017, Arm Limited and affiliates.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)