Michal Paszta
4e5ea38d14
nsapi_dns: use delete[] for array alloc'd with new[]
2019-11-05 22:39:58 +02:00
Martin Kojtal
0d0120a812
Merge pull request #11808 from michalpasztamobica/api_hardening
...
Document Socket API functions return values.
2019-11-05 09:46:54 +01:00
Martin Kojtal
fe940924cc
Merge pull request #11683 from AnttiKauppila/baremetal_support
...
Baremetal profile fixes
2019-11-04 15:53:57 +01:00
Martin Kojtal
412b0ae5d5
Merge pull request #11375 from tymoteuszblochmobica/nsapi_dns
...
NSAPI DNS query IP version check for non LWIP stacks.
2019-11-04 15:30:28 +01:00
Martin Kojtal
f27aec3377
Merge pull request #11279 from cy-jayasankar/pr/added-ipv6-link-local-address-api
...
Add API to get ipv6 link local address
2019-11-04 15:28:41 +01:00
Michal Paszta
87211e9158
Document Socket API functions return values.
...
Describe the return values with as much detail as possible, to let user only check the relevant return codes, instead of all nsapi_error_t. Refer to underlying APIs wherever possible.
2019-11-04 11:55:19 +02:00
Antti Kauppila
0b8cd38dcd
Baremetal profile fixes
2019-11-01 15:12:19 +02:00
Jayasankar Nara
cb51fa57e2
Add API to get ipv6 link local address.
...
Protocols like mdns requires IPv6 link local address to be advertised in its
records (AAAA record). LWIP::Interface::bringup() API is creating IPv6 link
local address;But as of now there is no API exposed by mbed-os to get the
IPv6 link local address.
This new API is required to deliver mDNS library support on mbed-os for Cypress
platforms. Unit tested it by invoking get_ipv6_link_local_address with a simple
application.
2019-11-01 03:43:36 +05:30
Martin Kojtal
da6b336391
Merge pull request #10978 from vmedcy/lwip-rawsocket
...
LwIP: add ICMPv4 Socket support
2019-10-31 11:50:21 +01:00
Martin Kojtal
419556b84a
Merge pull request #11735 from michalpasztamobica/dns_unittest_preparation
...
Dns unittest preparation
2019-10-30 11:04:19 +01:00
Martin Kojtal
98072b24c8
Merge pull request #11748 from cydriftcloud/pr-dev/fix-spurious-link-down-up
...
Fix spurious link up/down when AP IP address range change
2019-10-28 09:28:54 +01:00
Balaji
6905b1b547
Incorporate review comments from @kjbracey-arm
2019-10-25 10:51:50 -07:00
Balaji
5168bbdcd0
Add InternetDatagram Base Class
2019-10-25 10:48:13 -07:00
Balaji
ab883350a0
Incorporate review comments from @kjbracey-arm
2019-10-25 10:48:12 -07:00
Balaji
90e188b23a
fix a style convention
2019-10-25 10:48:12 -07:00
Balaji
0b5dea5f99
Changes to the PR 10978 (LWIP: Add RAWIPSocket support)
2019-10-25 10:48:12 -07:00
Martin Kojtal
a44fd827c2
Merge pull request #11578 from cydriftcloud/pr-dev/ap-sta-op-sync
...
Add synchronization and switching between WhdSoftAPInterface and WhdSTAInterfaces
2019-10-25 13:36:10 +02:00
Lei Zhang
d411d72196
MIDDLEWARE-2134: Fix spurious link up/down when AP IP address range changes
...
Fixed additional link down/up events in whd_wifi_link_state_change_handler by checking additional condition during the transition.
2019-10-24 18:43:07 -07:00
Martin Kojtal
ab931ee27c
Merge pull request #11662 from cydriftcloud/pr-dev/sta-extended-scan
...
Allow WhdAccessPoint scan results with extended parameters
2019-10-24 10:26:07 +02:00
Lei Zhang
28884b589c
Add synchronization and switching between SoftAP/STA
...
- A shared mutex is added for synchronization
- ScopedMutexLock is used to to protect
- SoftAP: start, stop
- STA: scan, join, disconnect
- Fix switching issue between SoftAP and STA mode for primary interface
- Avoid reinit primary interface by getting mapping the current interface to the other one which is already on
- In concurrent mode, STA is the default if it is up, otherwise SoftAP is default.
- For non-concurrent mode, the most recent started interface is set as default.
2019-10-23 18:31:20 -07:00
Lei Zhang
7b16166d51
Allow WhdAccessPoint scan result with extended parameters
...
- Add WhdAccessPoint to include additional WHD scan info
- To save memory, only move assignment is supported for WhdAccessPoint
- Add scan_whd to scan for WhdAccessPoint
- Set set_blocking(false) to unsupported by return NSAPI_ERROR_UNSUPPORTED
2019-10-23 14:43:07 -07:00
Martin Kojtal
e7d95f5f2a
Merge pull request #11536 from jeromecoutant/PR_STM32_EMAC
...
STM32 EMAC configuration update
2019-10-23 13:10:10 +02:00
Michal Paszta
45976419b8
DNS: unified parameter type of nsapi_dns_query_async_cancel
2019-10-23 11:58:15 +03:00
Michal Paszta
83af4e0b36
DNS: Cast void* to intptr_t in nsapi_dns.cpp
...
This is for portability reasons. If this code was compiled to a 64-bit architecture, then the cast from void* to int would lose precision.
2019-10-23 11:58:00 +03:00
Martin Kojtal
f6c28e54b6
Merge pull request #11586 from AnttiKauppila/lwip_improvements
...
Cleaned up Mbed LWIP configurations
2019-10-21 09:35:52 +02:00
Martin Kojtal
4af05bb370
Merge pull request #11648 from rohfle/target-olimex-stm32e407
...
OLIMEX_STM32E407_F407ZG: Added new target platform
2019-10-18 16:05:05 +02:00
Michal Paszta
3d596468b4
Fix memory leak on NetworkInterface destruction
...
We dynamically allocate memory in every add_event_listener(), but we do not free it on NetworkInterface destruction.
2019-10-14 10:58:18 +03:00
Rohan Fletcher
02df759c37
OLIMEX_STM32E407_F407ZG: Added new target platform
...
Added Olimex STM32-E407 (STM32F407ZG) evaluation board.
USB, UART, External HS XTAL and Ethernet are all working correctly.
2019-10-10 09:20:28 +13:00
Tymoteusz Bloch
b8a18e29bd
NSAPI DNS query IP version check for non LWIP stacks.
2019-10-08 17:50:51 +02:00
jeromecoutant
af8ab49a74
Avoid compilation if target doesn't support EMAC
2019-10-07 14:01:48 +02:00
jeromecoutant
587393bb45
STM32 EMAC: move from TARGET_STM_EMAC to TARGET_STM
2019-10-07 10:57:31 +02:00
Anna Bridge
eeb033f814
Merge pull request #11357 from kivaisan/offloaded_tlssocket_bg96
...
Offloaded TLSSocket and BG96 support for it
2019-10-03 11:54:32 +01:00
Antti Kauppila
d34a40a745
Cleaned up Mbed LWIP configurations
2019-09-27 15:52:40 +03:00
Kimmo Vaisanen
b319be14e8
Offloaded TLSSocket for BG96
...
Some external modems have an internal TLSSocket implementation which can be used
instead of mbedtls based TLSSocket. Using offloaded TLSSocket can result in
significantly reduced ROM usage.
Offloaded TLSSocket can be enabled by enabling "nsapi.offload-tlssocket" and the used
network stack (e.g. cellular modem's CellularStack class) must support the setsockopt's
defined in nsapi_types.h.
Compared to original mbedtls based TLSSocket, offloaded TLSSocket brings in one significant
API limitation. Offloaded TLSSocket requires setting of certificates and keys after open()
and before connect() calls, where mbedtls based TLSSocket allows setting these before open()
call.
2019-09-25 09:25:33 +03:00
Antti Kauppila
6adc2440a3
DNS manual cleanup mechanism added
2019-09-20 10:20:48 +03:00
Martin Kojtal
3297bf4062
Merge pull request #11420 from tymoteuszblochmobica/cm3ds
...
Fixed smsc9220_emac link_out memory management.
2019-09-10 19:52:44 +02:00
Tymoteusz Bloch
2626d90266
Fixed msc9220_emac link_out memory management.
2019-09-04 13:59:36 +02:00
Martin Kojtal
208d703b7e
Merge pull request #11338 from cydriftcloud/pr/psoc6-softap-bringdown
...
Bring down interface when stopping softap
2019-09-04 11:54:23 +02:00
Antti Yli-Tokola
1708ec2a3f
nsapi_dns: cleanup dns queue when running out or memory
2019-09-03 13:56:21 +03:00
Lei Zhang
5a3562a76b
Bringdown interface when stopping softap
...
The interface should be brought down when stopping softap.
2019-08-30 08:59:36 -07:00
Martin Kojtal
c99b150bcf
Merge pull request #11356 from kyle-cypress/pr/whd-link-state-fix
...
Fix WHD link state change event handling
2019-08-30 07:44:40 +02:00
Martin Kojtal
a65ed8c3d8
Merge pull request #11303 from jeromecoutant/PR_H743ZI2_480
...
NUCLEO_H743ZI2 : increase system clock from 400 MHz to 480 MHz
2019-08-29 17:10:06 +02:00
Lei Zhang
0b2e7bbef9
Use event handlers for link state callback
...
Allows DHCP to listen for device disconnect and refresh ip lease on reconnect.
2019-08-29 07:19:46 -07:00
Martin Kojtal
8ef742a49c
Merge pull request #11370 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc1
...
Driver Updates + ARMC6 driver support + WIFI fixes
2019-08-29 13:35:06 +02:00
aqib-ublox
7f36fbc86e
Driver Updates + ARMC6 driver support + wifi fixes
2019-08-29 11:33:29 +05:00
Kyle Kearney
8abada11f6
Add missing newlines to end of files
2019-08-28 10:56:15 -07:00
Lei Zhang
b27653af6f
Use individual headers instead of "mbed.h"
2019-08-28 10:56:15 -07:00
Kyle Kearney
26940e5c22
Add support for DHCP server with WHD
2019-08-28 10:56:15 -07:00
Kyle Kearney
e64fdba7fc
Update BSP and WifiInterface for WHD Changes
2019-08-28 10:56:14 -07:00
Martin Kojtal
7eb97be5a3
Merge pull request #11358 from 0xc0170/dev_rollup
...
Rollup PRs for 5.14
2019-08-28 16:39:36 +02:00