Commit Graph

12 Commits (0f959dbe4749c20416236e4fe1dac5692cbe18ab)

Author SHA1 Message Date
Michal Paszta d47f18a130 Nanostack: release connect_semaphore only when it is pending
Only release if the current _connect_status is CONNECTING. If the semaphore is released many times for each connect, then the next connect will not wait(), as it will be able to decrement the semaphore imediatelly.
2019-05-03 12:24:48 +01:00
Michal Paszta 7287775918 Nanostack network handle does not always call status cb for BOOTSTRAP events
UBLOX_EVK_ODIN_W2 advertises more events than we expect.
1) When disconnecting first network connectivity is lost and then an
actual disconnection event arrives. The first one is unexpected.
2) When reconnecting MESH_BOOTSTRAP_START_FAILED shows up, but the board
eventually manages to connect
2019-05-03 12:24:48 +01:00
Michal Paszta ffe97fa5a0 Nanostack::EthernetInterface::bringdown() can handle blocking mode
This let the tests-network-interface test pass for nanostack.
2019-04-05 12:26:57 +01:00
Antti Kauppila 02b0f79e15 mbed.h includes removed 2018-12-28 14:36:10 +02:00
Martin Kojtal 3aab38140a nanostack mesh: fix coding style 2018-11-15 07:20:12 +00:00
Kari Haapalehto c7afb91f62 Fix compile warning about initializing and variable order 2018-11-05 12:45:53 +02:00
Kari Haapalehto 1b1f5e7c0d Correct mesh network connection status callback functionality.
Now the status callback is only called if the status changed.
2018-10-17 08:30:58 +03:00
Kevin Bracey e014104258 Allow ThreadInterface::device_eui64_get() before connect()
Perform necessary driver initialisation so that we can read
the EUI-64 before connecting.

Fixes #7391.
2018-08-17 16:41:23 +03:00
Kevin Bracey 3a238bd7bd Streamline Nanostack interface initialisation
Can unify quite a log of the setup here, and that would be useful to
allow initialisation other than in "connect".
2018-08-17 16:41:23 +03:00
Kevin Bracey f3ec0dacd5 Add NetworkInterface::get_default_instance()
Provide an initial framework to make it easier to find a default network
interface.
2018-05-23 12:25:17 +03:00
Kevin Bracey 3c83c62ff7 Nanostack EMAC implementation
Make Nanostack an OnboardNetworkInterface, implementing
add_ethernet_interface so it can use EMAC drivers.

Can now be used via EthernetInterface, and be the system's default
network stack.

Legacy support for NanostackEthernetInterface retained. Some
restructuring of mesh interface code to fit into the
OnboardNetworkStack:::Interface system.
2018-05-23 12:24:04 +03:00
Seppo Takalo f0bf771502 Get rid of FEATURE_NANOSTACK
Allow FEATURE_NANOSTACK still to be defined in the build so
that we don't break any builds.
2018-04-27 14:38:44 +03:00