Commit Graph

28432 Commits (feature-wisun)

Author SHA1 Message Date
Martin Kojtal 185545adb9 travis: fix 3.5 test bug in attrs
Using specific version (pre 20) should fix the issue https://github.com/ARMmbed/mbed-os/issues/14110
2021-01-18 21:06:27 +02:00
Arto Kinnunen 9efce968e9 Squashed 'features/frameworks/nanostack-libservice/' changes from ad7631083a..a526cc3f41
a526cc3f41 Merge pull request #97 from PelionIoT/sync_from_mbed_os
2f82569918 Add license notice to Arm copyrighted source files

git-subtree-dir: features/frameworks/nanostack-libservice
git-subtree-split: a526cc3f41bfd0ec6a78e6998b8f8dcc1bd2afc9
2021-01-18 15:30:42 +02:00
Arto Kinnunen 02021856e4 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 35b95da122..3183d87e41
3183d87e41 Merge branch 'release_internal' into release_external
9e27a772f2 Disabled BR IID verify from DODAG ID
33ac7911cf Merge pull request #2548 from PelionIoT/sync_with_mbed_os
6f8b2829f4 compile out trace when not available
825373d3ef Add SPDX license identifier to Arm files
3ec3bc649d fixed warnings: static method defined but not used
ee34352ceb Check if RX channel needs to be updated when RX slot detected (#2540)
d59dc5d25e Fix doxygen 1.8.17 warnings (#2546)
1e0beb3e67 Update unit tests to support Ubuntu 2020_04 LTS (#2545)
b9b2ffd96b Fixed FHSS get retry period (#2543)
a0bf6aec91 Check if RX channel needs to be updated after broadcast received (#2539)
fde325eee2 Wi-SUN Neighbour ARO registration failure handling update:
1e1f9c66b0 RPL dio Handler update:
0421502e27 Asynch message advertiment enable added to DAO done when disabled.
0374f74013 Corrected memory leak on key storage allocation on low memory situation
23c2f7ed05 Disable ASYNCH messages at enter Local repair state.
c1df6b0d75 Added Poison_count check for First DIO time blocker.
944f934539 Added channel mask size to FHSS configuration (#2536)
20e79e05fc RPL Local repair disable clear advertised_dodag_membership_since_last_repair state
8a4638089a Fix doxygen comments (#2534)
fe06236e43 MAC ACK RX guarantee update
2388a80700 MAC layer send ack allways when it requirement's
29b387b697 RPL dao dynamic timeout
00bbd02f85 Don't allow TX slot length go below allowed minimum (#2528)
8333faa401 Out of memory improvement to remove packets from routing
0a12aebff9 Support channel plan IDs 1, 2 and 5 with NA and BZ bands (#2526)
ee4333da6f Wi-SUN Timing configuration is selected based on network size and data rate
a5b2a26eb2 WS: API to set PHY mode and Channel plan IDs as defined by FAN 1.1 (#2520)
b86a044911 Update nanostack v12.7.0 changelog (#2525)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 3183d87e410d80b96042c143e586967dce2ff650
2021-01-18 15:24:13 +02:00
Arto Kinnunen 07089272fa Merge commit '02021856e4681bd5092e48b8513ff90fb5d6b1e9' into origin/nanostack_release_12_8_0_feature_wisun
* commit '02021856e4681bd5092e48b8513ff90fb5d6b1e9':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 35b95da122..3183d87e41
2021-01-18 15:24:13 +02:00
Arto Kinnunen 15975a0a7e Merge commit 'a98f18974ae277f669bc2a95178bf0ab2eccc06b' into feature-wisun
* commit 'a98f18974ae277f669bc2a95178bf0ab2eccc06b':
  Squashed 'features/frameworks/mbed-trace/' changes from 6ced9711c4..b98f6a9050
2021-01-18 14:55:46 +02:00
Arto Kinnunen a98f18974a Squashed 'features/frameworks/mbed-trace/' changes from 6ced9711c4..b98f6a9050
b98f6a9050 Merge remote-tracking branch 'origin/master' into release_for_mbed_os
7a60a77390 Enable libservice by default
fc7503c1a6 Make IPv6 tracing conditional to nanostack-libservce

git-subtree-dir: features/frameworks/mbed-trace
git-subtree-split: b98f6a9050afd1d0b9354bc82d5d363fff5a1405
2021-01-18 14:55:46 +02:00
Arto Kinnunen bc16fbec3e Merge commit 'a95498f79214928d4b67efc0bd740de6f78fc205' into feature-wisun
* commit 'a95498f79214928d4b67efc0bd740de6f78fc205':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 806f54cea9..d182fa4b3a
2021-01-18 14:29:54 +02:00
Arto Kinnunen a95498f792 Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 806f54cea9..d182fa4b3a
d182fa4b3a Follow Mbed OS coding style (#47)

git-subtree-dir: features/nanostack/sal-stack-nanostack-eventloop
git-subtree-split: d182fa4b3aad7fdc70f7e74d6ed4d524e6f9286c
2021-01-18 14:29:54 +02:00
Arto Kinnunen 37ef68b188 802.15.4 Atmel RF driver update
Sync with master version v3.3.4
2021-01-18 14:20:58 +02:00
Jarkko Paso 5d3edd568e Mesh api: Added PHY mode and channel plan IDs 2021-01-15 12:43:24 +02:00
Anna Bridge bfbc2202f4
Merge pull request #13897 from ARMmbed/examples-5.15
Remove nanostack-border-router example from list of supported examples
2020-12-21 13:24:01 +00:00
Martin Kojtal a9d72466b9
Merge pull request #14054 from artokin/atmel_rf_driver_update
[feature-wisun] Nanostack 802.15.4 Atmel RF driver update
2020-12-16 14:02:34 +00:00
Arto Kinnunen c43319dc13 802.15.4 Atmel RF driver update
Sync with master version v3.3.3
2020-12-16 10:51:39 +02:00
Mika Leppänen b8611bd653 Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
Corrected Wi-SUN certificate add and remove functions to work properly
with .json certificates. .json certificates are used only if certificates
added by add functions are not set. Corrected certificate add and remove
functions to work properly and improved function descriptions.
2020-12-15 14:36:17 +02:00
Martin Kojtal 84d991342a
Merge pull request #13902 from artokin/set_mac_address
[feature-wisun] Network interface MAC address set/get
2020-12-14 13:52:44 +00:00
Martin Kojtal 715b15ccaa
Merge pull request #14018 from mikaleppanen/feature_wisun_corr_cert_add
Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
2020-12-14 13:52:15 +00:00
Martin Kojtal ff1b75d646
Merge pull request #13937 from mikaleppanen/new_to_nothrow
[feature-wisun] Replaced new calls with nothrow version of the call on mesh api
2020-12-14 12:49:32 +00:00
Martin Kojtal 0f92e5591d
Merge pull request #14040 from artokin/nanostack_release_12_7_0_for_feature_wisun
[feature-wisun] Nanostack release v12.7.0
2020-12-14 12:48:34 +00:00
Arto Kinnunen 8cbcdc5ebb
Merge pull request #14033 from jamesbeyond/wisun-cryptography-fix
FIX: update cryptography version to 2.5 or later
2020-12-14 11:37:32 +02:00
Arto Kinnunen 9c106fc631 Merge commit '8627d05e192c2b85eddd7108c89a67dcc6a29c34' into feature-wisun
* commit '8627d05e192c2b85eddd7108c89a67dcc6a29c34':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from b560a9da36..806f54cea9
2020-12-14 11:27:03 +02:00
Arto Kinnunen 8627d05e19 Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from b560a9da36..806f54cea9
806f54cea9 Use event id 0 for initialization event (#45)

git-subtree-dir: features/nanostack/sal-stack-nanostack-eventloop
git-subtree-split: 806f54cea9741acacec0a447db88e3b525548218
2020-12-14 11:27:02 +02:00
Arto Kinnunen 55474994b8
Merge pull request #13927 from liugang-gavin/feature-wisun
targets:evkbimxrt1050: Adjust the SEMC re-order rules
2020-12-14 11:10:04 +02:00
Arto Kinnunen 8a5f0f6d65 Merge commit '540d82c2785e100d170104efe90016257040355d' into feature-wisun
* commit '540d82c2785e100d170104efe90016257040355d':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 67d7b93ec6..ad7631083a
2020-12-14 10:44:46 +02:00
Arto Kinnunen 540d82c278 Squashed 'features/frameworks/nanostack-libservice/' changes from 67d7b93ec6..ad7631083a
ad7631083a Merge pull request #96 from PelionIoT/heap_lite_stats
18b742b2c7 Heap stat's enabled allways by default.
9b4cbaf101 Added extended block list to dynamic memory tracker (#95)
8ff6d31abb Added dynamic memory tracker and hooks to dynmem library (#93)
cf2b133082 Merge pull request #92 from LDong-Arm/add_present_flag
9eb6f2dde7 Add config to generate macro MBED_CONF_NANOSTACK_LIBSERVICE_PRESENT

git-subtree-dir: features/frameworks/nanostack-libservice
git-subtree-split: ad7631083ad69efa3a4335dd586934d25ab70b27
2020-12-14 10:36:44 +02:00
Arto Kinnunen dad2952087 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 715ae9a693..35b95da122
35b95da122 Remove unnecessary files from release
0717432619 Merge remote-tracking branch 'origin/release_internal' into release_external
f68126b85a Adaptation layer MCPS confirmation handle update
e483a0748d Added OFDM configurations and FEC in RF config structure (#2513)
b88abfa1c2 BUG fix: Fixed broken Brodcast MAC overflow handling
9cad47826a Random early detection congestion API update
00aed73abc Modified the Wi-SUN stack Latency estimates a bit slower
6b83d821ea Remove periodic PAN version increase from Wi-SUN border router
ef670e21f3 Integrated ReD congestion packet drop to Wi-SUN bootstrap interface.
b956d9e983 Revert "Improved transmission in high traffic (#2511)" (#2512)
01749c2116 Improved transmission in high traffic (#2511)
3158e966e0 Adaption layer queue trace update
5a32f4a7bb Update changelog, random_early_detection_congestion_check nameupdate and minor comment fix.
b818f12c6d Extented network status for support dropped tx congestion packet.
11c0763f4d Added new service Random early detection
f2c358dc2b Optimized medium NWK MPL parameters to 40 second multicast interval (#2508)
c013bc7790 Added traces to EAPOL TX failure
c29ee94a20 Changed TLS return value to int32_t
501a2c8578 Added trace for mbed TLS errors
9d7cd22aa6 Updated change log
1290225b95 Corrected radius message memory allocation
7b1c59695b Removed trace print's
efb83934f6 Adaptation layer MCPS confirmation handle update
ac1025e7e9 Bug Fix: Accept only next possible BSI for detect BR reboot and drop unkown's.
58f0e56fe4 Updated change log
102e525b9a Nanostack now indicates connection down on RPL local repair start
395791d535 FHSS WS: Do not allow broadcast TX on unicast channel (#2501)
72f8ecb8d2 Updated changelog.md
237620827c Activated higher priority by traffic class CS6 for NS/NA and RPL, EAPOL/ DHCP Relay messages.
afbe9061b5 Adaptation layer update
13fb2bfdbb Update CHANGELOG.md
af81c48993 DIO init TX filter update
13a872c6b9 Fix typos in github template (#2498)
1af20e1aee Initial version of CHANGELOG (#2497)
d9874ede96 Feature update: Improved MAC TX queue purge
69264429f9 Wi-SUN Aro registration temporary address registation bug fix.
d3170ed50a Removed generic event and wrong trace info.
0db3486a7a Removed trace from place which is normal and not needed
a080f18d83 Added debug tarce for dropped unsecured and MPL packets.
51cd5646ed Wi-SUN NS probe update:
579f75684e Adaptation layer: Do not push CCA failed packet back to MAC (Wi-SUN) (#2487)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 35b95da1226ebb070fdaeb3ec47fb82f48ff8fad
2020-12-14 10:31:07 +02:00
Arto Kinnunen 423d4d8f87 Merge commit 'dad29520878740d4673638d73cfb53d757b7895c' into feature-wisun
* commit 'dad29520878740d4673638d73cfb53d757b7895c':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 715ae9a693..35b95da122
2020-12-14 10:31:07 +02:00
Anna Bridge 06e29c4142
Merge pull request #14034 from jamesbeyond/5.15-cryptography-fix
FIX: update cryptography version to 2.5 or later
2020-12-12 14:10:59 +00:00
Qinghao Shi b09ec698ac FIX: update cryptography version to 2.5 or later 2020-12-11 16:25:31 +00:00
Qinghao Shi 73eaa6f985 FIX: update cryptography version to 2.5 or later 2020-12-11 16:17:23 +00:00
Mika Leppänen 66273c7944 Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
Corrected Wi-SUN certificate add and remove functions to work properly
with .json certificates. .json certificates are used only if certificates
added by add functions are not set. Corrected certificate add and remove
functions to work properly and improved function descriptions.
2020-12-09 13:16:30 +02:00
Arto Kinnunen 11459797a7 Update WICED binaries for ARMC6
A new method has been added to the NetworkInterface. Therfore WICED
library needs to be rebuild for ARMC6.

Update WICED binaries for:
-MTB_ADV_WISE_1530
-MTB_MXCHIP_EMW3166
-MTB_USI_WM_BN_BM_22
2020-11-30 16:12:09 +02:00
Arto Kinnunen 69675417e6 Remove API changes
-Remove Nanostack::add_ethernet_interface API change
-Add get_mac_address to MeshEthernetInterface
2020-11-26 17:07:24 +02:00
Arto Kinnunen 6b69421927 Update EmacTestNetworkStack
-Uncomment get_mac_address
-Document set_mac_address
2020-11-25 09:17:20 +02:00
Arto Kinnunen 9d23b7c55b
Merge pull request #13909 from mikaleppanen/feature-wisun-dyn-mem-track
[feature-wisun] Add nanostack dynamic memory tracker and hooks to dynmem library
2020-11-24 16:43:52 +02:00
Mika Leppänen 82e9f8d6b8 Replaced new calls with nothrow version of the call on mesh api
Replaced new calls with nothrow version of the call.
2020-11-24 16:05:56 +02:00
Arto Kinnunen cfc11827d5 Fix unittests
Use path in "mbed-trace/mbed_trace.h" to keep unittest happy.
2020-11-24 15:27:07 +02:00
Arto Kinnunen 71d5482941 Fix method description 2020-11-24 12:04:41 +02:00
Arto Kinnunen 7a801e92ac Follow Mbed OS coding style 2020-11-24 11:51:04 +02:00
Arto Kinnunen 8f88cba705 Update EMAC connect logic with MAC address change
Do not fail EMAC interface during connect if MAC address change is
not supported in the selected interface.
2020-11-24 11:10:24 +02:00
Arto Kinnunen b1f65d2e68 Review corrections
-Update method set_mac_address description
-Update EMAC test method return value
2020-11-23 10:49:12 +02:00
Mika Leppänen 7303d446ad Replaced new calls with nothrow version of the call on mesh api
Replaced new calls with nothrow version of the call.
2020-11-20 14:08:32 +02:00
Arto Kinnunen de2063928a Update unittests 2020-11-20 12:36:06 +02:00
Arto Kinnunen cb1419d2e7 Update set_mac_address signature
Use nsapi_size_t instead of size_t.
Update missing method description.
2020-11-20 12:35:57 +02:00
Gavin Liu e600c577ee targets:evkbimxrt1050: Adjust the SEMC re-order rules
Update the BMCR0, BMCR1 registers to adjust the SEMC
re-order rules. This can improve the SDRAM stability
under multiple AXI masters system.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-11-19 19:14:53 +08:00
Mika Leppänen a9746a563a Added extended block list to dynamic memory tracker
If same allocator (alloc call) allocates multiple dynamic memory blocks,
the additional blocks are added to extended memory block list, and
the allocator list reference count and total sizes are increased.
When statistics are calculated, it is only needed to process the
allocator list, not the whole memory block list.

Added also optional hash function to calculate the (start) index where
memory block information is stored on extended memory block list. Hash
is calculated from memory block address.

It is expected that hash distributes the free index searches evenly
to whole memory area allocated for extended memory block list. So if
area is large enough, in most cases the index pointed by the hash, or
the index few indexes from that, should be empty and available for use.
Similarly, when memory block is freed, the search for the block on
the extended memory block list, starts from the index pointed by the
hash.

If hash is not used, extended memory block list searches start always
from index 0.
2020-11-18 17:31:41 +02:00
Arto Kinnunen c81aca4d03 Review correction: Remove unnecessary method
Remove unnecessary method: add_ethernet_interface_ns
2020-11-16 16:37:46 +02:00
Arto Kinnunen 7155c9aa9d MAC address set/get support for EMAC interface
Add support to set and get MAC address from EMAC interface.
2020-11-16 16:09:09 +02:00
Mika Leppänen 5c24b26940 Added nanostack dynamic memory tracker and hooks to dynmem library
Nanostack dynamic memory tracker tracks memory allocations. It has following
interface:

ns_dyn_mem_tracker_lib_alloc: is called on alloc

ns_dyn_mem_tracker_lib_free: is called on free

ns_dyn_mem_tracker_lib_step: updates the lifetime of individual memory
blocks (is used to detected which blocks are permanent and which
have been allocated lately)

ns_dyn_mem_tracker_lib_allocator_lists_update: updates allocator lists,
there are lists for top allocators, permanent allocators and allocators
going to permanent allocators list

ns_dyn_mem_tracker_lib_max_snap_shot_update: can be used to update memory
maximum usage snap shot, this can be called on alloc if snap shot is
needed
2020-11-16 10:20:36 +02:00
Martin Kojtal 649ee6c1f5
Merge pull request #13901 from mikaleppanen/feature_wisun_systick_overflow
[feature-wisun] Make _unacknowledged_ticks uint32_t to prevent overflow
2020-11-11 14:50:29 +00:00
Arto Kinnunen 26b322e3de Method for adding network interface MAC address
Add method set_mac_address to set network interface MAC address.
2020-11-11 14:54:51 +02:00