Commit Graph

505 Commits (feature-wisun)

Author SHA1 Message Date
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
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 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
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 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
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
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 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
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
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
Arto Kinnunen 554cfaf1a4 Merge commit '04c21e779bce62f4caa4f913e6c2a847f50d949e' into feature-wisun
* commit '04c21e779bce62f4caa4f913e6c2a847f50d949e':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from d207f4d9f9..715ae9a693
2020-11-09 16:06:48 +02:00
Martin Kojtal 99661bd2c8
Merge pull request #13715 from mikaleppanen/mesh_global_up_5.15
mbed-os-5.15: Mesh interface global up is indicated always on bootstrap ready
2020-10-30 14:19:38 +00:00
Martin Kojtal abf8a03de9
Merge pull request #13775 from mikaleppanen/radius_init_5_15
mbed-os-5.15: Add initialization to radius retry values
2020-10-30 10:35:22 +00:00
Martin Kojtal 30076a42a3
Merge pull request #13774 from mikaleppanen/radius_trace_corr_5_15
mbed-os-5.15: Add initialization check to RADIUS ipv6 address
2020-10-30 10:35:07 +00:00
Martin Kojtal 2cf237efb7
Merge pull request #13758 from artokin/add-min-sens-wisun-param-mbed-os-5.15
mbed-os-5.15: Add APIs for Device min sense and CCA threshold table
2020-10-30 10:33:12 +00:00
Martin Kojtal 2c2b134ee2
Merge pull request #13735 from artokin/enable_nanostack_dns_cache_mbed_os_5_15
mbed-os-5.15: Enable Nanostack DNS cache usage
2020-10-29 14:03:44 +00:00
Arto Kinnunen 283197975c Merge commit '02935482aeb5abe15817c48ad6ca078e79c00478' into feature-wisun
* commit '02935482aeb5abe15817c48ad6ca078e79c00478':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 09d9e24f2d..d207f4d9f9
2020-10-28 15:35:54 +02:00
Martin Kojtal e054e8baca
Merge pull request #13740 from mikaleppanen/radius_init_fea_wisun
feature-wisun: Add initialization to radius retry values
2020-10-26 12:48:23 +00:00
Martin Kojtal ef235632ef
Merge pull request #13736 from mikaleppanen/cert_remove_5_15
mbed-os-5.15: Add certificate remove before add to wisun tasklet
2020-10-22 15:59:08 +01:00
Martin Kojtal aeaf6e8630
Merge pull request #13719 from artokin/nanostack_release_v12_6_0_for_mbed_os_5_15
mbed-os-5.15: Nanostack release v12.6.0
2020-10-22 15:58:00 +01:00
Mika Leppänen b0f08862f1 Added initialization to radius retry values
This corrects uninitialized scalar field coverity warning.
2020-10-16 14:45:46 +03:00
Mika Leppänen f5cad8368a Added initialization check to RADIUS ipv6 address
Added initialization check to RADIUS ipv6 address that prevents the border router from printing unnecessary error trace
when RADIUS is not enabled.
2020-10-16 14:33:12 +03:00
Arto Kinnunen 16d3dd46b9 Document missing parameter network_interface_name 2020-10-14 09:12:30 +03:00
Arto Kinnunen 695a97a851 Use macro for isdigit 2020-10-14 09:12:30 +03:00
Arto Kinnunen 12ccb70617 Follow Mbed OS coding style 2020-10-14 09:12:30 +03:00
Arto Kinnunen a35f724af6 Update WisunBorderRouter class
Add set_dns_query_result to WisunBorderRouter.
2020-10-14 09:12:30 +03:00
Arto Kinnunen f5851f54c7 Follow Mbed OS coding style 2020-10-14 09:08:31 +03:00
Arto Kinnunen 321434eae4 Review corrections
-Check address version NSAPI_UNSPEC
-Disable traces
-More specific interface ID parsing
-Harmonize return values
2020-10-14 09:08:31 +03:00
Arto Kinnunen 0af9d04e4a Mesh: Enable Nanostack DNS cache usage
Inherit methods gethostbyname, gethostbyname_async and get_dns_server
to Nanostack class. Methods will try to find DNS server address
or DNS query results from Nanostack DNS cache.
2020-10-14 09:08:31 +03:00
Debdeep Saha 46b141eea5 Resolved comments. 2020-10-13 15:06:38 +03:00
Debdeep Saha c0eb6df2e8 Added APIs for Device min sense and CCA threshold table.
-Added get, set and validate API for device min sens.
-Added get API for CCA threshold table.
2020-10-13 15:06:27 +03:00
Mika Leppänen e41a6988d1 [feature-wisun] Added initialization to radius retry values
This corrects uninitialized scalar field coverity warning.
2020-10-08 12:51:51 +03:00
Mika Leppänen c78f17f85b Added certificate remove before add to wisun tasklet
This prevents tasklet from adding own certificates multiple times
to Nanostack in case bootstrap is made again.
2020-10-08 12:03:11 +03:00
Mika Leppänen 18a0f76334 [mbed-os-5.15] Added external RADIUS server configuration to Wi-SUN Border Router
Added configuration functions and .json configuration options for:
- external RADIUS server IPv6 address
- RADIUS shared secret.
- RADIUS client retry trickle timer configuration. This can be used to set how fast
the RADIUS client retries Access-Request messages to RADIUS server in case reply
from server is not received.
2020-10-08 10:23:03 +03:00
Arto Kinnunen 12a43bada5 Merge commit 'd2d0895795de64321d486208316838415ed80d65' into mbed-os-5.15
* commit 'd2d0895795de64321d486208316838415ed80d65':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from d879e6db87..09d9e24f2d
2020-10-05 15:14:02 +03:00
Arto Kinnunen c1c9ba5c6a Merge commit '4098b26c4477b6ed8929e71c571b8fb13195582a' into feature-wisun
* commit '4098b26c4477b6ed8929e71c571b8fb13195582a':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 7e3b99c375..09d9e24f2d
2020-10-05 13:59:55 +03:00
Mika Leppänen 26a9079263 [mbed-os-5.15] Mesh interface global up is indicated always on bootstrap ready
This indicates e.g. to client that IP address has changed or connection
to network has been established.
2020-10-05 13:28:36 +03:00
Martin Kojtal b67e542a69
Merge pull request #13495 from artokin/upstream_mesh_network_size_api_to_5_15
[mbed-os-5.15] Add WiSun network size configs in JSON
2020-09-30 11:30:44 +01:00
Martin Kojtal 7b57ac62b6
Merge pull request #13559 from artokin/nanostack_release_v12_5_0_mbedos_5_15
[mbed-os-5.15] Nanostack release v12.5.0
2020-09-30 10:43:41 +01:00
Mika Leppänen ff9a560737 Mesh interface global up is indicated always on bootstrap ready
This indicates e.g. to client that IP address has changed or connection
to network has been established.
2020-09-25 15:19:14 +03:00
Felipe f2ac70318a Possible invalid memory access on memcpy 2020-09-15 14:12:50 -03:00
Arto Kinnunen 29fc103fdb Merge commit '53e16d679d1e78746dfa09b8ed5e36e280702ec9' into feature-wisun
* commit '53e16d679d1e78746dfa09b8ed5e36e280702ec9':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9a1b35398c..7e3b99c375
2020-09-15 13:19:10 +03:00
Mika Leppänen e9a4c729fa Added certificate remove before add to wisun tasklet
This prevents tasklet from adding own certificates multiple times
to Nanostack in case bootstrap is made again.
2020-09-14 12:37:08 +03:00
Arto Kinnunen b204ba592a
Merge pull request #13588 from mikaleppanen/radius_trace_corr
[feature-wisun] Added initialization check to RADIUS ipv6 address
2020-09-10 19:40:45 +03:00
Arto Kinnunen 99bd22cfaf Merge commit '769796ee45960a01489665d1af0325e6680b2211' into feature-wisun
* commit '769796ee45960a01489665d1af0325e6680b2211':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from b969fa3779..9a1b35398c
2020-09-10 13:26:48 +03:00
Mika Leppänen 013ab40ec7 Added initialization check to RADIUS ipv6 address
This prevents the border router from printing unnecessary error trace
when RADIUS is not enabled.
2020-09-10 09:57:52 +03:00
Arto Kinnunen 45f6b27f8b Merge commit '8ae3f59cb8606f9db7ab1a34844710ee0cb6ebd8' into feature-wisun
* commit '8ae3f59cb8606f9db7ab1a34844710ee0cb6ebd8':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from d879e6db87..b969fa3779
2020-09-08 12:39:39 +03:00
Arto Kinnunen cbfbca5bd4 Merge commit '3d6d4d5a9e08a05dbafd3592e8b0c69e05454523' into mbed-os-5.15
* commit '3d6d4d5a9e08a05dbafd3592e8b0c69e05454523':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 48609aeded..d879e6db87
2020-09-07 11:10:05 +03:00
Arto Kinnunen a43934c343 Merge commit '1ad46bb6f1fb40805aa9f72ccb50c87335febed7' into feature-wisun
* commit '1ad46bb6f1fb40805aa9f72ccb50c87335febed7':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 91acececbd..d879e6db87
2020-09-04 13:53:21 +03:00
Arto Kinnunen 85f2537a1c
Merge pull request #13521 from debdeep-arm/add-wisun-param
[feature-wisun] Added APIs for Device min sense and CCA threshold table.
2020-09-04 12:17:20 +03:00
Debdeep Saha 1d02005677 Resolved comments. 2020-09-03 21:24:26 +05:30
Mika Leppänen 417c888baf Added configuration for RADIUS retry timer 2020-09-03 12:12:18 +03:00
Arto Kinnunen e46dd971df
Merge pull request #13507 from artokin/enable_nanostack_dns_cache
[feature-wisun] Enable Nanostack DNS cache usage
2020-09-03 11:46:41 +03:00
Arto Kinnunen 5a6b76021d
Merge pull request #13517 from mikaleppanen/radius_shared_secret_set_corr
[feature-wisun] RADIUS shared secret .json parameter set correction
2020-09-02 15:37:44 +03:00
Arto Kinnunen 69720f1068 Use macro for isdigit 2020-09-02 15:15:45 +03:00
Debdeep Saha b0c2443ec1 Typo fixed. 2020-09-02 13:49:01 +03:00
Debdeep Saha 72c28ee497 Resolving comments 2020-09-02 13:49:01 +03:00
Debdeep Saha c5386c0cee Updating mbed-mesh-api.
-Adding new parameters for Wi-SUN interface information.
2020-09-02 13:49:01 +03:00
Debdeep Saha a69af3f848 Added APIs for Device min sense and CCA threshold table.
-Added get, set and validate API for device min sens.
-Added get API for CCA threshold table.
2020-09-02 15:26:38 +05:30
Arto Kinnunen 22c3c35996 Follow Mbed OS coding style 2020-09-02 12:41:14 +03:00
Arto Kinnunen 207250fe84 Update WisunBorderRouter class
Add set_dns_query_result to WisunBorderRouter.
2020-09-02 12:41:14 +03:00
Arto Kinnunen 7b775632f1 Follow Mbed OS coding style 2020-09-02 12:41:14 +03:00
Arto Kinnunen 58136e93d8 Review corrections
-Check address version NSAPI_UNSPEC
-Disable traces
-More specific interface ID parsing
-Harmonize return values
2020-09-02 12:41:14 +03:00
Arto Kinnunen 24aaba0eca Mesh: Enable Nanostack DNS cache usage
Inherit methods gethostbyname, gethostbyname_async and get_dns_server
to Nanostack class. Methods will try to find DNS server address
or DNS query results from Nanostack DNS cache.
2020-09-02 12:41:14 +03:00
Arto Kinnunen a21c2e20fe Merge commit '9bea7f4b891f33623aca0e51b92736818397de1b' into nanostack_milestone5_prerel
* commit '9bea7f4b891f33623aca0e51b92736818397de1b':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 48609aeded..91acececbd
2020-09-02 10:49:11 +03:00
Mika Leppänen a327210fd0 RADIUS shared secret .json parameter set correction 2020-09-01 12:18:00 +03:00
fred.li a219f8a581 Add WiSun network size configs in JSON 2020-08-26 10:52:53 +03:00
Mika Leppänen befd783e59 Added support for RADIUS configuration options to Wi-SUN
Added support for external RADIUS server configuration to Wi-SUN Border Router.
Added configuration functions and .json configuration options for:
- external RADIUS server IPv6 address
- RADIUS shared secret.
2020-08-20 11:43:01 +03:00
Debdeep Saha 0e64f7de8a Typo fixed. 2020-08-19 15:24:04 +05:30
Debdeep Saha 2b11de8629 Resolving comments 2020-08-19 15:24:04 +05:30
Debdeep Saha 80c9b270cd Updating mbed-mesh-api.
-Adding new parameters for Wi-SUN interface information.
2020-08-19 15:24:04 +05:30
Arto Kinnunen 0a6e65629e Merge commit '946061932982cee2928784163fec649bc718692f' into mbed-os-5.15
* commit '946061932982cee2928784163fec649bc718692f':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from b3fe5744d1..48609aeded
2020-08-18 12:14:57 +03:00
Arto Kinnunen 7764d75934 Merge commit '07bd840fb601902f653b4adaa9d8d768b137ad8c' into mbed-os-5.15
* commit '07bd840fb601902f653b4adaa9d8d768b137ad8c':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 276ff28179..b560a9da36
2020-08-18 12:08:49 +03:00
Arto Kinnunen 75e1781f0c Merge commit '96d7abd79fc58007ec6ed11dc73e64145b30d528' into feature-wisun
* commit '96d7abd79fc58007ec6ed11dc73e64145b30d528':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from b3fe5744d1..48609aeded
2020-08-17 17:18:15 +03:00
Arto Kinnunen a367c51851 Merge commit '565dab530c9544c6cf5d391c5444aa040b410513' into feature-wisun
* commit '565dab530c9544c6cf5d391c5444aa040b410513':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 276ff28179..b560a9da36
2020-08-17 17:10:14 +03:00
Anna Bridge 455041e9ae
Merge pull request #13151 from debdeep-arm/wisun-interface-api-add
[mbed-os-5.15] Added Wi-SUN Interface APIs
2020-07-27 17:20:41 +01:00
Arto Kinnunen 3ab72c71b7
Merge pull request #13134 from fredlee12001/WiSun_Size
Add WiSun network size configs in JSON
2020-07-03 10:12:11 +03:00
Mika Leppänen f944bb738e Corrected network name and PAN ID change on auth start
PAE supplicant did not detect correctly that network name or PAN ID
was changed on authentication start. This causes the supplicant to
use old keys and old BR EUI-64 during authentication, which resulted
to BR EUI-64 mismatch on 4WH.
2020-06-24 11:25:10 +03:00
Arto Kinnunen c77b2f4beb
Merge pull request #13132 from debdeep-arm/fix-routing-table-get-api
[feature-wisun] Fix routing_table_get API
2020-06-22 16:51:41 +03:00
Debdeep Saha 3f69826bd4 [mbed-os-5.15] Added Wi-SUN Interface APIs
-info_get for Wi-SUN router.
-info_get for Wi-SUN BR.
-routing_table_get for Wi-SUN BR.
2020-06-18 16:40:30 +05:30
fred.li b728321721 Add WiSun network size configs in JSON 2020-06-18 18:59:31 +08:00
Felipe dd546ed28e WS Management API missing include 2020-06-17 22:53:17 -03:00
Debdeep Saha 7b1ff34b50 [feature-wisun] Fix routing_table_get API
-Return value is modified.
2020-06-17 16:48:06 +05:30
Arto Kinnunen cef4dde453 Merge remote-tracking branch 'upstream/mbed-os-5.15' into feature-wisun
* upstream/mbed-os-5.15: (47 commits)
  Update mbed version to 5.15.4
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from cc03296c27..b3fe5744d1
  Squashed 'features/frameworks/nanostack-libservice/' changes from 9a61e73787..c6cae6992a
  802.15.4 MCR20A RF driver update
  802.15.4 Atmel RF driver update
  802.15.4 STM S2LP driver update
  Added Wi-SUN statistics interface
  Allowed to set Wi-SUN certificates in DISCONNECTED state
  Change unrecognised features to a warning, rather than error
  Fix assertation ordering in tests
  Define mbedtls_ecc_group_to_psa inline for NS world
  Remove references to mbed-crypto
  Move Mbed Crypto Greentea tests to Mbed TLS
  Update Mbed TLS to latest version
  Adjust Mbed TLS importer and config script
  tls: Remove apache-2.0.txt from importer script
  tools: Fix grammar in feature error message
  M2351: Enable non-PSA minimal secure build
  Cellular: Enable tac info for ALT1250
  Nuvoton: Change WDT clock source to LXT
  ...
2020-06-17 12:21:07 +03:00
Anna Bridge 0515ed1f9f
Merge pull request #13072 from mikter/ws_certificate_set_change_5.15
[mbed-os-5.15] Allowed to set Wi-SUN certificates in DISCONNECTED state
2020-06-12 14:48:23 +01:00
Anna Bridge 82e2f9016c
Merge pull request #13080 from artokin/nanostack_release_12_3_0_to_5_15
[mbed-os-5.15] Nanostack release v12.3.0
2020-06-12 14:47:34 +01:00
Anna Bridge cc8bb4596f
Merge pull request #13084 from debdeep-arm/wisun-interface-api-add
[feature-wisun] Added Wi-SUN interface and Border Router API.
2020-06-11 12:04:22 +01:00
Debdeep Saha 16e807e2f5 Adding check for RPL instance count. 2020-06-10 20:43:03 +05:30
Mika Tervonen 782141bf98
Allowed to set Wi-SUN certificates in DISCONNECTED state (#13071)
Before certificates were able to set only once.
Now after disconnect those can be set Again

Also those can be set when stack is active
2020-06-10 17:16:22 +03:00
Debdeep Saha 466a57ada4 resolved astyle - coding format. 2020-06-10 18:26:07 +05:30
Debdeep Saha 0387254ebd Resolved comments.
Rebased with ARMmbed feature-wisun branch.
2020-06-10 18:01:50 +05:30
Debdeep Saha 4c6dd9334a Fixed coding style. 2020-06-09 18:54:00 +05:30
Debdeep Saha 64851eb5d9 Added Wi-SUN interface and Border Router API.
-Taken modification for adding IID in BR info structure.
-Added API to get RPL info for Wi-SUN router and BR.
-Added API to get routing table info from BR.
2020-06-09 18:54:00 +05:30
Arto Kinnunen 364a81b43a Merge commit 'e3c2a36da0985647730e26c63b50d480cce9ef79' into mbed-os-5.15
* commit 'e3c2a36da0985647730e26c63b50d480cce9ef79':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from cc03296c27..b3fe5744d1
2020-06-08 14:27:38 +03:00
Mika Leppänen 7b6ee061ba Added Wi-SUN statistics interface
Added network and MAC statistics to Wi-SUN interface.
2020-06-08 13:07:09 +03:00
Arto Kinnunen 5f4ae1f766 Merge commit '528aa2f96fd4702b02ae9fff3dacd546ee984fde' into feature-wisun
* commit '528aa2f96fd4702b02ae9fff3dacd546ee984fde':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9a2166869f..b3fe5744d1
2020-06-08 10:12:05 +03:00