Commit Graph

6241 Commits (mbed-os-5.15.3-rc1)

Author SHA1 Message Date
Martin Kojtal 52f1f28292
Merge pull request #12869 from kivaisan/fix_lwip_socket_close_with_traces_5_15
LWIP: don't pbuf_free(NULL) on socket close (5.15-branch)
2020-04-27 14:19:20 +02:00
Kevin Bracey 99344963d2 LWIP: don't pbuf_free(NULL) on socket close
`pbuf_free(NULL)` causes an `LWIP_ASSERT`. Make the call conditional.

Fixes #12184
2020-04-27 13:32:23 +03:00
Teemu Takaluoma e1af7be4e0 Update mbed-coap to version 5.1.5
BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.

The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
2020-04-27 11:26:09 +03:00
Antti Yli-Tokola 7edaf6dc7c Update mbed-coap to version 5.1.4
Add also 4.13 (Request Entity Too Large) responses to duplicate info list.

Add client library configurations for DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED.

Increased the default timeouts of DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED to 300 seconds.
These two are critical parameters for low-bandwidth high-latency networks. The defaults should be more geared towards such networks that are likely to have issues with transmissions.
The increased defaults can increase the runtime HEAP usage when there is a lot of duplicates or retransmissions.
2020-04-24 08:18:21 +01:00
Martin Kojtal 61c5c74847
Merge pull request #12845 from LDong-Arm/mbed-os-5.15
Backport SweynTooth fix for Cordio to 5.15
2020-04-22 18:03:41 +02:00
Martin Kojtal 27ac3d4622
Merge pull request #12813 from artokin/nanostack_relase_to_mbed_os_5_15
[mbed-os-5.15] Nanostack release to mbed-os-5.15 branch
2020-04-22 13:43:35 +02:00
Lingkai Dong 568c1f915f Port Cordio LE Secure Connections check from PacketCraft
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.

(cherry picked from commit c927773115)
2020-04-22 10:58:27 +01:00
Lingkai Dong 421becce8d Port Cordio SMP control block improvements from Packetcraft
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.

(cherry picked from commit 0402fe4efb)
2020-04-22 10:58:05 +01:00
Arun S 9b87551d40 Remove ethernet interface logic for SoftAP and STA
Issue: The problem is that there is a race condition introduced in that the LWIP thread is relying on the
interface as it is taken down by a application thread while calling disconnect.
In disconnect api called from application context, whd_emac_wifi_link_state_changed() will refer to netif interface
structure in its callback api netif_link_irq(netif). This netif will be cleared by remove_etherent_interface().
whd_emac_wifi_link_state_changed will post message to tcpip_thread. tcpip_thread will process the message and
call the callback api netif_link_irq(netif)
Calling sequence is whd_emac_wifi_link_state_changed -> remove_etherent_interface(). Hence there is a timing issue
that netif might be cleared first before tcpip thread process the message netif_link_irq(netif)

Fix: remove_etherent_interface() will post message to tcpip thread and tcpip:
thread process the message delete_interface()
which will actually remove the inferface from the netif_list.
Calling sequence is whd_emac_wifi_link_state_changed() message post -> remove_etherent_interface() message post.
message processing order netif_link_irq(netif) -> delete_interface().
Since both the processing is handled in single thread, processing of message is handled sequentially.
2020-04-21 22:15:25 +05:30
Arto Kinnunen bbf2db37c9 Merge commit 'd104328f556c60ee09bb316ffc700ba8f1deca19' into mbed-os-5.15
* commit 'd104328f556c60ee09bb316ffc700ba8f1deca19':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..cc03296c27
2020-04-16 11:43:53 +03:00
Arto Kinnunen 9f3c053626 Merge commit '4daaaf126d9dfbfcbe638753573139d95442da1f' into mbed-os-5.15
* commit '4daaaf126d9dfbfcbe638753573139d95442da1f':
  Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
2020-04-16 11:42:16 +03:00
Kyle Kearney 6554e3951e Revert "Backport #12603: Add CYSBSYSKIT_01"
This reverts commit 4e6692b529.
There are issues with wifi connectivity on this target that mean
it is not ready to ship with 5.15.2.
2020-04-08 14:14:11 -07:00
Martin Kojtal 757f14b807
Merge pull request #12776 from JarkkoPaso/update_stm32_emac_ethernet_driver
Update stm32 emac ethernet driver
2020-04-08 18:35:32 +02:00
Martin Kojtal 64b10f450d
Merge pull request #12767 from Patater/update-to-tls-2.21.0
Upgrade to Mbed TLS 2.21.0 and Mbed Crypto 3.1.0
2020-04-08 15:19:01 +02:00
Martin Kojtal 3db7cd42da
Merge pull request #12771 from kyle-cypress/pr/cypress-backport-whd-assert
Cypress: Partial backport of #12769
2020-04-08 15:18:31 +02:00
Arto Kinnunen 38f9a09f12 Update STM32 EMAC driver based on review
-Fix len type
-Use ETH_RX_BUF_SIZE instead of hard-coded value 1500
2020-04-08 14:11:50 +03:00
Arto Kinnunen 6d2bc4f144 Update STM32 EMAC driver - limit RX frame length
DISCO_F769NI EMAC driver may return ethernet packet with illegal
length when driver is under heavy load. In one case, the received
bytes indicate frame length of 53 bytes but advertised data length
was 65518 bytes. In another case EMAC driver variable
`EthHandle.RxFrameInfos.length` contained value 0xFFFF FFFC.

As a work-around accept only 1-1500 bytes long ethernet packets.
2020-04-08 14:11:21 +03:00
Martin Kojtal 9929ddd038
Merge pull request #12723 from AnttiKauppila/mbedtls_fixes5.15
Mbedtls fixes for 5.15.2
2020-04-08 08:57:12 +02:00
Martin Kojtal eaeb983a9e
Merge pull request #12650 from kivaisan/cellular_alt1250_mbedos_5_15
Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
2020-04-08 08:56:30 +02:00
midd d55117f2aa WHD: Remove an assert from get_rssi()
This assert in WhdSTAInterface.cpp causes rssi greentea test to fail
on Cypress parts. This is because the rssi GT test expects the negative
test case to return 0 and not assert.
2020-04-07 12:25:18 -07:00
Darryl Green 65e91244fa crypto: Use updated ECC curve macros 2020-04-07 11:30:31 +01:00
Jaeden Amero 8eef39b8f1 crypto: Upgrade to Mbed Crypto 3.1.0 2020-04-07 10:11:16 +01:00
Jaeden Amero ec898fb1fa tls: Upgrade to Mbed TLS 2.20.0 2020-04-07 09:57:37 +01:00
Ryan Morse fa6bfb26eb Backport #12701: Custom BT Firmware for CYW9P62S1_43012EVB_01 2020-04-02 15:04:24 -07:00
Dustin Crossman 4e6692b529 Backport #12603: Add CYSBSYSKIT_01 2020-04-02 15:02:44 -07:00
midd 8199e25f24 Backport #12394: Fix Cypress 1M SDIO + other minor bugs
- Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised
  to add the hardware crypto block.
- Add missing error checks for emac power up.
- Add a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
  Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT,
  CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.
2020-04-02 14:49:22 -07:00
Kimmo Vaisanen d65b82da9d Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
This commit introduces Altair ALT1250 PPP mode cellular driver for mbed-os 5.15 -branch.
2020-04-02 13:08:27 +03:00
Martin Kojtal 978db96468
Merge pull request #12485 from artokin/nanostack_for_mbedos_5_15_branch
Nanostack release for Mbed OS 5.15
2020-04-02 10:33:56 +02:00
Antti Kauppila 9c328114c5 Licence updated 2020-03-31 16:15:44 +03:00
Antti Kauppila 5bdc7314f4 more error handling added for ctr and hmac 2020-03-31 16:04:54 +03:00
Antti Kauppila 3dbe97b8cb MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib 2020-03-31 08:26:46 +03:00
Antti Kauppila af12d0642b trace group defiined for shared_rng
Unittests fixed

2 mbedtls functions were updated to reflect the api
2020-03-31 08:26:35 +03:00
Teppo Järvelin 377e363059 Added missing optimizations based on mbedtls/baremetal.h config 2020-03-31 08:26:11 +03:00
Teppo Järvelin c801caf7cf fixed ssl hostname handling 2020-03-31 08:26:01 +03:00
Teppo Järvelin 163e5c90e3 Added new global rng, needed for MbedTLS optimisations 2020-03-31 08:25:47 +03:00
Teppo Järvelin a325320c47 Prepare for upcoming MbedTLS changes 2020-03-31 08:25:05 +03:00
Jarno Lamsa 2f0907c140 Remove _variant_bd_erase_unit_size
In some cases, it is possible that every erase unit in area 0
has the same size, but they are still different than in area 1.
Remove the flag for varying erase sizes and instead check from
flash, what is the erase size of the current unit.
2020-03-19 14:47:43 +02:00
Arto Kinnunen b1a86dc776 Merge commit '2792e61d87df13c64d8abaf30ccde13b6f75eeda' into nanostack_for_mbedos_5_15
* commit '2792e61d87df13c64d8abaf30ccde13b6f75eeda':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9b3e144f5b..fb7413b846
2020-02-21 11:01:00 +02:00
Arto Kinnunen c8d1b3b51b Merge commit 'c9610e1a78b2b94fb659539b30d7fb4e0f1e36c8' into nanostack_for_mbedos_5_15
* commit 'c9610e1a78b2b94fb659539b30d7fb4e0f1e36c8':
  Squashed 'features/nanostack/coap-service/' changes from b919a3366f..e5e0c138e6
2020-02-21 10:59:22 +02:00
Arto Kinnunen e7e75accaa Merge commit 'db389d4b4b3cf6cf080926399bef2584ab896ba1' into nanostack_for_mbedos_5_15
* commit 'db389d4b4b3cf6cf080926399bef2584ab896ba1':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 9af756886f..9a61e73787
2020-02-21 10:54:43 +02:00
Martin Kojtal 7b398c0abd Samsung: fix incorrect conflict resolution 2020-02-07 10:25:57 +00:00
adbridge aa298c0769 Revert "Pairing fails when IPv6 enabled in SoftAP intf"
This reverts commit 18285e1fc1.
2020-02-06 11:27:33 +00:00
Pawel Zarembski feb2952cb2 hani_iot: add spif storage config 2020-02-05 15:25:11 +00:00
Arun S df72637b61 Pairing fails when IPv6 enabled in SoftAP intf Issue: udp_sendto() Fails for multicast IPV6 packet when interface is switched from SoftAP to STA mode. When SoftAP start is called, add_ethernet_interface() will be called internally to add interface details into netif_list. When switching from SoftAP to STA mode, add_ethernet_interface() will be called again to append the interace details into netif_list. When udp_sendto() is called, ip6_route() will return interface as NULL since it consider device as single interface. Fix: SoftAP mode Stop, call remove_ethernet_interface() to remove the interface from the netif_list. 2020-02-05 15:25:11 +00:00
PARKJIHOON e8b27c2780 Default use BEDTLS_SHA512_SMALLER for SW fallback
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-02-05 15:25:11 +00:00
Andrew Chong a98d2795fc Changed 2018 or 2019 copyright to 2020 via sed auto change. 2020-02-05 15:20:32 +00:00
Andrew Chong 0588b5502a Applied the latest astyle. 2020-02-05 15:09:40 +00:00
Andrew Chong 14f27720a2 Updated the code fix of timer and Mbed TLS. 2020-02-05 15:09:40 +00:00
PARKJIHOON 6c3477117b tidy up PR comments #3
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-02-05 15:09:40 +00:00
PARKJIHOON 9ea2ce91fa tidy up PR comments #1
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-02-05 15:03:36 +00:00