Commit Graph

2912 Commits (fd68ba0d642bca2bc40946dcba6ccefdcbde70e4)

Author SHA1 Message Date
Veijo Pesonen 35f980ba4f gethostbyname won't accept empty name
Considers both versions - synchronous and asynchronous. Earlier the
underlying stack was trusted to do this check.
2018-06-15 13:30:56 +01:00
Mika Leppänen e703861333 Corrected asynchronous DNS functionality
- Set network stack to store event queue so that mbed::mbed_event_queue() call
  is not needed every time call_in() is called
- Added dns state variables and enum (states are: created, initiated and cancelled)
- Corrected DNS response handling so that if DNS server returns that host name is
  unknown the DNS query is not tried again
- Reorder mutexes in nsapi_dns_query_multiple_async()
- Created nsapi_dns_query_async_initiate_next() function to initiate the next
  DNS query from the queue after delete of previous query
- Added dsn_timer_running variable to supervise DNS timer start/stop
- Changed cancel function to only mark query as deleted and moved deletion
  to timer function. This allows to run socket close on DNS thread
- Added new nsapi error NSAPI_ERROR_TIMEOUT for DNS (and other) timeouts
2018-06-15 13:30:56 +01:00
Ari Parkkila 5cd450ce70 Cellular: Fix AT URC handler not to dismiss incoming chars 2018-06-15 13:30:56 +01:00
Kari Haapalehto a4ff62e145 Add check for _interface 2018-06-15 13:30:56 +01:00
Mirela Chirica 2b2f53e92f Cellular: Added ENOTTY define in mbed_retarget stub 2018-06-15 13:30:56 +01:00
Mirela Chirica ca0ba7727a Cellular: Added missing copyrights 2018-06-15 13:30:56 +01:00
Mirela Chirica 3586af6da7 Cellular: Unit tests fixes 2018-06-15 13:30:56 +01:00
Teppo Järvelin 7944db6411 Cellular: review fixes. 2018-06-15 13:30:56 +01:00
Teppo Järvelin 79739de1aa Cellular: review changes. 2018-06-15 13:30:56 +01:00
Teppo Järvelin 0c23935cae Cellular: Fixed connect-disconnect sequence can now be called multiple times. 2018-06-15 13:30:56 +01:00
Krzysztof Stachowiak e5b59ab945 Update Mbed TLS after corrections for the import procedure 2018-06-08 09:23:59 +01:00
Krzysztof Stachowiak 1a6028b60d Update MbedTLS to 2.10.0 (from an RC) 2018-06-08 09:23:59 +01:00
Krzysztof Stachowiak 1394b03e64 Update Mbed TLS do version 2.10.0-rc1 2018-06-08 09:23:59 +01:00
Krzysztof Stachowiak 9f71d5fcb5 Improve the documenting comment in a config adjustment script 2018-06-08 09:23:59 +01:00
Krzysztof Stachowiak 4b3f8d5869 Add configuration options to enable CMAC in mbedtls by default 2018-06-08 09:23:59 +01:00
Vincent Coubard f4089a0d74 BLE Nordic: Initialize and teardown tls platform context 2018-06-05 15:05:18 +01:00
paul-szczepanek-arm bf4a8040f0 fix erroneous assert 2018-06-05 15:05:18 +01:00
paul-szczepanek-arm ab51109a9c check for invalid param 2018-06-05 15:05:18 +01:00
paul-szczepanek-arm 5aaca082f0 fix not updating size of array 2018-06-05 15:05:18 +01:00
Oren Cohen ac03c12eed Update uvisor_deprecation.h 2018-06-05 15:05:18 +01:00
Oren Cohen 78de5c3950 Edit warning about FEATURE_UVISOR being deprecated 2018-06-05 15:05:18 +01:00
Ron Eldor 54e2bae638 Remove redundant Cryptocell libraries
Remove additional redundant libraries, that were accidently added in merges
2018-06-05 15:05:18 +01:00
Martin Kojtal 5d8570be39
Merge pull request #7030 from kjbracey-arm/emac_ppp_fix
Fix lwIP PPP glue
2018-05-28 15:19:12 +02:00
Martin Kojtal 501a7b6949
Merge pull request #7009 from bulislaw/merge_feature_branches_for_5.9
Bring in improved HAL APIs to master
2018-05-28 12:31:14 +02:00
Kevin Bracey cedbf72a3b Fix lwIP PPP glue
EMAC changes broke PPP glue - fix it up. In particular, PPP steals
the netif->state pointer, so we can't use it as a back pointer to
our LWIP::Interface.
2018-05-28 10:30:42 +03:00
Cruz Monrreal e3aa140aaa
Merge pull request #6981 from yogpan01/master
Remove ns_event_loop_thread_start() from NDInterface and ThreadInterface connect()
2018-05-25 16:51:04 -05:00
Cruz Monrreal 5709c04cae
Merge pull request #7019 from mikaleppanen/lwip_lpc_mem_conf
Made lwip memory configuration more specific for NXP targets
2018-05-25 12:47:29 -05:00
Bartek Szatkowski a92ff94904 Fix rebase error 2018-05-25 12:20:10 -05:00
Cruz Monrreal c0895cb832
Merge pull request #6910 from hasnainvirk/metadata
LoRaWAN: Adding acquisition of metadata, backoff and a cancel_send() API
2018-05-25 11:11:50 -05:00
Martin Kojtal 7031ab1c1f
Merge pull request #7015 from SeppoTakalo/fix_odin
Fix build for MBT_ODIN_W2 and MBED_CONNECT_ODIN when using WiFi
2018-05-25 16:29:54 +02:00
Cruz Monrreal 61eb0e170d
Merge pull request #7012 from ARMmbed/AnotherButler-patch-1
Enable DeviceKey class reference for Doxygen
2018-05-25 08:25:17 -05:00
Cruz Monrreal a348b4583d
Merge pull request #7000 from kfnta/uvisor_depr
Add warning about FEATURE_UVISOR being deprecated
2018-05-25 08:24:26 -05:00
Mika Leppänen 7a1703de23 Made lwip memory configuration more specific for NXP targets
There is a configuration problem with UBLOX_C027 cellular because of missing
LWIP memory configuration for the target.

Added configuration for LPC1768, LPC4088, LPC4088_DM targets and changed
NXP to more specific LPC546XX.
2018-05-25 12:48:35 +03:00
Seppo Takalo f989f6838b Fix build for MBT_ODIN_W2 and MBED_CONNECT_ODIN when using WiFi
Odin WiFi driver was only supplied for EVK board.
These all are just the same module, so using the main target name
that all inherit.
2018-05-25 10:54:09 +03:00
Cruz Monrreal 25fb8e3cf0
Picking a deprecation warning and moving forward 2018-05-24 19:49:35 -05:00
Amanda Butler 44dc8624d5
Enable DeviceKey class reference for Doxygen
Add conditional, so Doxygen renders properly.
2018-05-24 18:59:12 -05:00
Cruz Monrreal 5ce26b1306
Merge pull request #6927 from AriParkkila/cellular-debug
Cellular: AT debugging improved
2018-05-24 12:35:06 -05:00
Cruz Monrreal 527f9a12fd
Merge pull request #6983 from SenRamakri/sen_ErrorHandling_Push2
Standardized Error Handling and Error Codes
2018-05-24 10:57:00 -05:00
Cruz Monrreal 791620c428
Merge pull request #6932 from paul-szczepanek-arm/security-manager-dev
BLE privacy, signing, persistent security database
2018-05-24 10:07:06 -05:00
Cruz Monrreal 06180e89f7
Merge pull request #6642 from yossi2le/yossi-device-key-driver
Device key implementation
2018-05-24 10:06:14 -05:00
Cruz Monrreal 2f86c152f0
Merge pull request #6794 from RonEld/cc310_porting
Cryptocell 310 support
2018-05-24 10:05:46 -05:00
Kevin Bracey 13dcef63e3
Merge pull request #6847 from ARMmbed/feature-emac
Merge feature-emac branch into master
2018-05-24 16:47:04 +03:00
Hasnain Virk 9973eb3e79 Stability improvements & CRYPTO_ERROR addition
General stability improvements are performed.
A flag is added if a Class C RX2 window is open.
We shouldn't open it again if its already opened.

TX_CRYPTO_ERROR is renamed to CRYPTO_ERROR.
Keeping TX_CRYPTO_ERROR for backwards compatibility.
2018-05-24 15:59:07 +03:00
Hasnain Virk 0feb0efb89 Adding checks for stack initialization
Metadata APIs should return an error if the stack is not initialized yet.
2018-05-24 15:54:32 +03:00
Hasnain Virk 3020d658bf Travis astyle corrections
The scope of style corrections is local to this PR only.
2018-05-24 15:54:32 +03:00
Hasnain Virk 2bc8e4e847 Adding ack expiry handling for class C
In Class C, rx timeout does not take place for RX2 windows, so if we have
not received anything, we would be retrying but if the no. of retries are
maxed out, and we have not recieved anything yet, we need a mechanism to
tell the upper layer that this has happened.
2018-05-24 15:54:32 +03:00
Hasnain Virk b0ce443f5b Doing away with rx_abort()
rx_abort() was sort of dead code as it was doing essentially nothing.
It might have actually meddled with the state machine if it was hit by
invoking on_ack_timeout_timer_event().

State machine and corresponding processors now take care of the ack timeout,
retries and all other bits, so we don't need abort_rx().
2018-05-24 15:54:32 +03:00
Hasnain Virk 375e1b711d Adding useful trace and setting no. of retries
MCPS confirmation should be filled with the current number of retries
if the ack is not recieved for a CONFIRMED message.

Ack retry number needs to be incremented after the retry is made not before
that.

A few traces are added at the crucial junctions of the code just to tally with
the conceptual flow for debug purposes.
2018-05-24 15:54:32 +03:00
Hasnain Virk 26b28f78af Adding ability to cancel outgoing transmission
Application can use cancel_sending() API to stop any outstanding, outgoing
transmission (a TX which is not already queued for transmission). This can
potentially enable use cases where the application could cancel a transmission
and go to sleep if the backoff period is long enough rather than waiting for
the transmission to happen.
2018-05-24 15:54:32 +03:00
Hasnain Virk 8363311c7a Adding acquisition of backoff time value
This API enables the application to get hold of remaining time after which
the transmission will take place. User can query the backoff time whenever
there is a packet in the TX pipe. If the event for the backoff expiry is
already queued, the stack does not provide backoff metadata.
2018-05-24 15:54:32 +03:00