benpicco
04ad9ac6b9
Merge pull request #15214 from janosbrodbeck/pr/ble_ipv6_mtu
...
net/netif/gnrc_netif: allow larger IPv6 MTU than minimum for BLE
2020-10-21 23:25:27 +02:00
Bas Stottelaar
47d376c5c3
sys/*: add explicit include of timex.h
2020-10-21 21:47:31 +02:00
Benjamin Valentin
eb3daf4c22
drivers/at86rf215: give driver threads different names
...
Use different names for the sub-GHz and 2.4 GHz driver thread to make
it easier to tell which is which.
```
2020-10-21 19:53:50,608 # pid | name | state Q | pri | stack ( used) ( free) | base addr | current
2020-10-21 19:53:50,622 # - | isr_stack | - - | - | 512 ( 232) ( 280) | 0x20000000 | 0x200001c8
2020-10-21 19:53:50,623 # 1 | main | running Q | 7 | 1536 ( 660) ( 876) | 0x200002f8 | 0x2000075c
2020-10-21 19:53:50,639 # 2 | pktdump | bl rx _ | 6 | 1536 ( 236) ( 1300) | 0x200035a8 | 0x20003abc
2020-10-21 19:53:50,653 # 3 | 6lo | bl rx _ | 3 | 1024 ( 332) ( 692) | 0x2000420c | 0x2000450c
2020-10-21 19:53:50,655 # 4 | ipv6 | bl rx _ | 4 | 1024 ( 376) ( 648) | 0x200009d4 | 0x20000cd4
2020-10-21 19:53:50,670 # 5 | udp | bl rx _ | 5 | 1024 ( 252) ( 772) | 0x200049f0 | 0x20004cf4
2020-10-21 19:53:50,672 # 6 | at86rf215 [sub GHz] | bl rx _ | 2 | 1024 ( 536) ( 488) | 0x20001200 | 0x200014c4
2020-10-21 19:53:50,687 # 7 | at86rf215 [2.4 GHz] | bl rx _ | 2 | 1024 ( 536) ( 488) | 0x20001600 | 0x200018c4
2020-10-21 19:53:50,689 # | SUM | | | 8704 ( 3160) ( 5544)
```
2020-10-21 19:59:42 +02:00
Benjamin Valentin
671c882d4f
gnrc_netif_ieee802154_create: make name argument const
...
`gnrc_netif_create()` already expects a `const` name parameter,
also make the name parameter in `gnrc_netif_ieee802154_create()` const.
2020-10-21 19:49:34 +02:00
Hendrik van Essen
aead3162ec
sys/shell: terminate shell on Ctrl-D
...
Ctrl-D was not caught in a special case so it was interpreted as
a standard character. Handle it now the same way like EOF and
terminate the shell instance.
2020-10-21 17:40:44 +02:00
bdd7a24ea5
Merge pull request #15252 from benpicco/crypto/chacha20poly1305-cleanup
...
crypto/chacha20poly1305: cleanup
2020-10-20 21:25:40 +02:00
Martine Lenders
5d1d38d8f7
Merge pull request #15207 from chrysn-pull-requests/rpl-no-race
...
gnrc_rpl: Check for race against initializer thread
2020-10-20 19:04:14 +02:00
Martine Lenders
9e4c508ed9
Merge pull request #15218 from maribu/tsrb-fix
...
sys/tsrb: Make thread-safe
2020-10-20 18:32:49 +02:00
Benjamin Valentin
abf192b39b
crypto/chacha20poly1305: use unaligned_get_u32()
2020-10-20 17:16:09 +02:00
Benjamin Valentin
97fdfba3f3
crypto/chacha20poly1305: make internal functions static
2020-10-20 17:13:48 +02:00
chrysn
7ed50c3d18
gnrc_rpl: Lock against race against initializer thread
...
When gnrc_rpl_init was called from a thread with higher priority than
the RPL thread, the initializer's call to gnrc_netreg_register would be
executed before the event loop even had a chance to set up its message
queue.
The added short-lived lock makes it work from threads of any priority.
2020-10-20 16:14:04 +02:00
János Brodbeck
5a75eb29c3
net/netif/gnrc_netif: allow larger IPv6 MTU than minimum for BLE
2020-10-20 14:20:51 +02:00
e20dc64ff3
Merge pull request #15135 from bergzand/pr/riotboot/flashwrite_raw
...
riotboot/flashwrite: add flashpage_raw capabilities
2020-10-20 13:05:56 +02:00
d31a39d7fc
Refactor verification check to remove goto and label
2020-10-20 11:22:56 +02:00
d87a5af7c6
suit/storage/flashwrite: Add flashpage_raw capability
...
Updates the suit flashwrite storage module to include compatibility with
the riotboot flashwrite raw capability.
2020-10-20 11:22:56 +02:00
55b0f0b6a8
riotboot/flashwrite: add flashpage_raw compatibility
...
This adds optional usage of periph_flashpage_raw for the
riotboot/flashwrite module. This removes the need to buffer a full
flashpage page, instead it must buffer two times the
FLASHPAGE_RAW_BLOCKSIZE. One is used to buffer the current write block,
the other buffers the first chunk (offset zero, page zero). This first
chunk is written when finalizing the flash operation.
Care must be taken that, when using the skiplength, the number of bytes
skipped is always a multiple of the FLASHPAGE_RAW_BLOCKSIZE.
2020-10-20 11:22:56 +02:00
Jose Alamos
ca7240e529
ieee802154_submac: drop luid dependency
2020-10-19 15:18:35 +02:00
Jose Alamos
217dc9e6e0
ieee802154/submac: receive IEEE 802.15.4 addresses on init
2020-10-19 15:18:35 +02:00
Jose Alamos
46600adf22
nrf802154: unify auto_init for HAL and netdev
2020-10-19 15:18:35 +02:00
Jose Alamos
c1a9d352f3
cc2538_rf: unify auto_init for HAL and netdev
2020-10-19 15:18:34 +02:00
Benjamin Valentin
6fa15ff3f6
sys/luid: improve luid_base() algorithm
...
CPU IDs may contain very little entropy. Often only a single byte
may change between two CPUs.
To mitigate this use a somewhat 'proper' hash algorithm (I chose DJB2
hash simply because it's small) and 'extend' it to the required output
size.
For 50 STM32 CPU IDs from the grenoble site, this produces a much more
random LUID output.
2020-10-18 14:52:02 +02:00
José Alamos
fc8961ec27
Merge pull request #15081 from akshaim/PR_LoRaWAN_IN_865
...
net/lorawan : Support for IN865 region, Improve debugging
2020-10-16 12:22:18 +02:00
benpicco
0f726b17d5
Merge pull request #15228 from jia200x/pr/hal_read_func
...
ieee802154/radio: add `read` function
2020-10-15 21:31:10 +02:00
benpicco
3714b97e17
Merge pull request #15230 from brummer-simon/gnrc_tcp-internal_api_cleanup
...
GNRC TCP: internal api cleanup
2020-10-15 21:27:50 +02:00
Simon Brummer
55a5062292
gnrc_tcp: cleanup internal api
2020-10-15 15:16:03 +02:00
benpicco
4edf5c7cbd
Merge pull request #15208 from benpicco/ieee802154_submac-etx
...
netdev/ieee802154_submac: add retransmission reporting
2020-10-15 14:31:54 +02:00
Benjamin Valentin
87151db891
ieee802154_submac: mark retrans as invalid if driver does not report it
2020-10-15 13:26:42 +02:00
Marian Buschsieweke
c38ca6d718
Merge pull request #15212 from miri64/gnrc_pkt/enh/pkt-list-ops
...
gnrc_pkt: introduce packet list operations
2020-10-15 12:13:03 +02:00
Jose Alamos
b796d9805d
ieee802154/submac: adapt to radio hal API change
2020-10-14 18:07:28 +02:00
Jose Alamos
ee5adad401
ieee802154/radio: replace indication mechanism
2020-10-14 18:07:28 +02:00
Martine Lenders
f2e1c1ac87
Merge pull request #15209 from brummer-simon/gnrc_tcp-cleanup_debug_messages
...
gnrc_tcp: Overhaul all debug messages
2020-10-14 17:42:19 +02:00
Simon Brummer
0cc06a5993
gnrc_tcp: Overhaul all debug messages
2020-10-14 16:58:53 +02:00
Francisco Acosta
05b089b3c4
gnrc_netif: remove unused event_netdev_t
struct
2020-10-14 14:46:35 +02:00
Akshai M
2c526a7d29
net/lorawan : Expose to Kconfig
...
Expose LORAMAC_REGION_XX_XXX to Kconfig as a choice
2020-10-14 00:16:47 +05:30
Akshai M
1a54238244
gnrc/lorawan : Improve debugging
...
gnrc_lorawan.c, gnrc_lorawan_mlme.c : Add additional debug
statements
net/gnrc/lorawan/region.h : Added debug statements
2020-10-14 00:16:47 +05:30
Martine Lenders
45144fb4a4
treewide: use new gnrc_pkt API functions instead of utlist.h macros
2020-10-13 13:32:53 +02:00
Martine Lenders
d491e827fb
gnrc_pkt: introduce packet list operations
...
Up until now `utlist.h` is used to manipulate the packet list within a
GNRC pkt snip. Since I always wanted to see if there would be an
advantage when using `core`'s `list.h`, I provide this
`gnrc_pktsnip_t`-specific API to manipulate the packet list. It has the
additional advantage of type safety and that future steps could
encapsulate those operations.
2020-10-13 13:32:53 +02:00
Marian Buschsieweke
0d0b14de29
sys/tsrb: Make thread-safe
...
Drop the requirement of having only one writer and one reader, as the name of
the ring-buffer does not indicate any limitation on the thread-safety. The
two-threads-one-buffer kind of ring buffer can be reintroduced with a different
name.
2020-10-13 10:32:41 +02:00
Akshai M
874d7d15cb
gnrc/lorawan : Add RX1DROffset for IN865 region
...
Co-authored-by: José Alamos <jialamos@uc.cl>
2020-10-13 13:40:49 +05:30
Akshai M
35e9612d02
gnrc/lorawan : Add IN_865 channel frequencies
2020-10-13 13:38:19 +05:30
Akshai M
d23441f740
net/lorawan : Add support for IN865 Channel
...
Add CONFIG_LORAMAC_REGION_EU_868 and CONFIG_LORAMAC_REGION_IN_865.
Define xx_RX2_DR and xx_RX2_FREQ. Update documentation.
2020-10-13 13:38:19 +05:30
Sören Tempel
af03cd8f4f
gnrc_netif: add missing gnrc_netif_release() to early return
...
The gnrc_netif_ipv6_addr_add_internal() function unconditionally
acquires the global netif rmutex lock but doesn't release this lock on
this specific path (i.e. if gnrc_netif_ipv6_group_join_internal failed).
This can cause a deadlock as no other thread will afterwards be capable
of acquiring the netif lock.
2020-10-13 04:42:52 +02:00
d92f280add
Merge pull request #15211 from miri64/gnrc_tcp/cleanup/utlist-pkt-func
...
gnrc_tcp: use gnrc_pktsnip_search_type() to search for snips
2020-10-13 13:18:02 +02:00
Martine Lenders
d105a67b9f
gnrc_tcp: use gnrc_pktsnip_search_type() to search for snips
2020-10-13 11:37:34 +02:00
János Brodbeck
4e35f473a4
sock/dtls: fix return value of sock_dtls_session_create()
2020-10-09 23:12:05 +02:00
benpicco
3384c327a7
Merge pull request #15194 from miri64/gnrc_netif_raw/fix/netif-hdr
...
gnrc_netif_raw: add NETIF header on receive
2020-10-09 14:35:54 +02:00
Martine Lenders
6991ad5910
gnrc_netif_raw: add NETIF header on receive
...
... to give upper layer a hint on the interface the packet came from.
2020-10-09 11:51:18 +02:00
Martine Lenders
453403cc8f
Merge pull request #15083 from benpicco/drivers/enc28j60-regster
...
drivers/enc28j60: register with netdev
2020-10-08 15:39:31 +02:00
Martine Lenders
b11acf1940
Merge pull request #15155 from benpicco/gnrc/rpl-TODO
...
gnrc/rpl: document implementation status
2020-10-08 13:35:06 +02:00
Benjamin Valentin
868c07158e
gnrc/rpl: document implementation status
...
This copies the information from #3662 to the documentation.
Makes it more discoverable and let's people manage their
expectations.
2020-10-08 12:10:05 +02:00
Benjamin Valentin
1afe72a5e5
drivers/enc28j60: register with netdev
2020-10-08 10:36:56 +02:00
benpicco
ab37c9fba1
Merge pull request #14949 from benpicco/drivers/mrf24j40-register
...
drivers/mrf24j40: register with netdev
2020-10-08 10:33:37 +02:00
Francisco
3918d714ce
Merge pull request #13624 from wosym/pr/candev_mcp2515
...
tests/candev: add mcp2515 + driver/mcp2515: add driver
2020-10-08 09:45:40 +02:00
Benjamin Valentin
988ee1648f
drivers/mrf24j40: register with netdev
2020-10-07 16:39:39 +02:00
Martine Lenders
bcd59f9789
Merge pull request #15161 from brummer-simon/gnrc_tcp-hide_global_variables
...
gnrc_tcp: Hide remaining global variables
2020-10-06 14:10:14 +02:00
Martine Lenders
2aaca12d06
Merge pull request #15160 from brummer-simon/gnrc_tcp-reduce_scope_of_receive_buffer
...
gnrc_tcp: reduce scope of receive buffer
2020-10-06 14:09:15 +02:00
José Alamos
7bb566f306
Merge pull request #15157 from akshaim/PR_LoRaWAN_Bugfix
...
gnrc/lorawan : Bug fix for zero CFList
2020-10-06 10:44:21 +02:00
Karl Fessel
9a89b84c2c
Makefile.dep: sort dependencies
...
move most dependencies from <RIOTBASE>/Makefile.dep to the Makefile.dep where
dependant module resides
2020-10-05 18:27:58 +02:00
Akshai M
b4594ffe32
gnrc/lorawan : Bug fix for zero CFList
...
Correct check for CFlist and then conditinally process CFList.
2020-10-05 21:51:33 +05:30
Simon Brummer
7b1629553f
gnrc_tcp: Hide remaining global variables
2020-10-05 16:13:13 +02:00
Leandro Lanzieri
e1418e0972
Merge pull request #14065 from jia200x/pr/improve_gnrc_lorawan
...
gnrc_lorawan: refactor
2020-10-05 15:56:00 +02:00
Simon Brummer
a29666f87c
gnrc_tcp: reduce scope of receive buffer
2020-10-05 15:07:02 +02:00
Simon Brummer
aec5586021
gnrc_tcp: Fix typo in config.h
2020-10-05 14:59:11 +02:00
benpicco
2cab6b9f18
Merge pull request #14500 from brummer-simon/gnrc_tcp-replace_xtimer_with_evtimer
...
gnrc_tcp: Replace xtimer with evtimer
2020-10-05 13:58:39 +02:00
Fabian Hüßler
069f88eeb6
sys/crypto: OCB add const
2020-10-05 12:32:51 +02:00
Fabian Hüßler
8ded1b8c3c
sys/crypto: CTR add const
2020-10-05 12:32:51 +02:00
Fabian Hüßler
a9295ae531
sys/crypto: CCM add const
2020-10-05 12:32:51 +02:00
Fabian Hüßler
83d391f6b1
sys/crypto: CBC and ECB add const
2020-10-05 12:32:51 +02:00
Wouter Symons
757f810118
drivers/mcp2515: complete driver + adapt to 2020 RIOT API
2020-10-03 15:20:42 +02:00
Vincent Dupont
62a9929f9b
mcp2515: add a driver for the mcp2515 SPI CAN controller
...
This driver implements the candev interface
2020-10-03 15:20:42 +02:00
chrysn
6350d22bc9
net/gcoap: Register additional resources head-first
...
This simplifies (written and compiled) code by doing a head rather than
a tail insertion of the new listener into gcoap's list.
As handling of listeners without a link_encoder is now fixed,
gcoap_get_resource_list can handles this now without having to manually
skip over the .well-known/core handler (which is not the first entry any
more now).
Incidentally, this allows the user to install a custom handler for
.well-known/core, as the default handler is now evaluated last.
2020-10-02 21:04:25 +02:00
chrysn
e3db58f013
net/gcoap: Avoid endless loop on error
...
The NULL case can not regularly be reached (because regularly
gcoap_register_listener sets thel link_encoder to a default one), but if
it is (eg. because an application unsets its link_encoder to hide a
resource set at runtime), the existing `continue` is a good idea (skip
over this entry) but erroneously created an endless loop by skipping the
advancement step.
2020-10-02 20:53:05 +02:00
chrysn
10592f2bb1
Merge pull request #15146 from chrysn-pull-requests/coap_link_flag-reference
...
net/gcoap: Fix reference to COAP_LINK_FLAGS in documentation
2020-10-02 20:48:49 +02:00
chrysn
07a5a79f40
net/gcoap: Fix reference to COAP_LINK_FLAGS in documentation
2020-10-02 19:11:07 +02:00
Francisco
df3ab9f161
Merge pull request #15138 from aabadie/pr/dist/codespell_fixes
...
dist/codespell: update the list of ignored words and fix all typos
2020-10-02 12:27:12 +02:00
José Alamos
f30da14341
Merge pull request #15007 from akshaim/Kconfig_lora
...
net/lora : Expose configurations to Kconfig
2020-10-02 11:01:52 +02:00
44f8d82571
sys/ztimer: fix typo 'functinality' -> 'functionality'
2020-10-02 08:16:14 +02:00
c2685e4e3c
sys/shell/sht1x: fix typo 'presicion' -> 'precision'
2020-10-02 08:15:56 +02:00
13a897e2c7
sys/posix/pthread: fix typo 'defore' -> 'before'
2020-10-02 08:15:31 +02:00
fce6e4032d
sys/zptr: fix typos
...
- 'bounderies' -> 'boundaries'
- 'compressable' -> 'compressible'
- 'Substracts' -> 'Subtracts'
2020-10-02 08:15:00 +02:00
8507989931
sys/xtimer: fix typo 'occcured' -> 'occurred'
2020-10-02 08:14:02 +02:00
11aa30625f
sys/net/gnrc: fix typos
...
- 'Busses' -> 'Buses'
- 'wether' -> 'whether'
- 'inferface' -> 'interface'
- 'registartion' -> 'registration'
- 'divisable' -> 'dividable'
- 'anounce' -> 'announce'
2020-10-02 08:13:18 +02:00
3186c8973f
sys/can: fix typo 'theoritical' -> 'theoretical'
2020-10-02 08:09:37 +02:00
eefcfd16e2
sys/arduino: fix typo 'adress' -> 'address'
2020-10-02 08:09:14 +02:00
a7656a51b7
suit: Move common storage.c to module directory
2020-10-01 19:40:14 +02:00
benpicco
6cb8da7813
Merge pull request #14950 from jia200x/pr/ieee802154/submac
...
ieee802154_submac: add initial support for common MAC sub layer
2020-10-01 11:31:52 +02:00
Simon Brummer
132882df73
gnrc_tcp: Replace xtimer with evtimer
2020-10-01 11:30:00 +02:00
Jose Alamos
9ebc3f8bd8
auto_init/nrf52840: add support for SubMAC
2020-10-01 10:55:55 +02:00
Jose Alamos
7cf6943eab
net/ieee802154: add config for default CCA threshold
2020-10-01 10:55:55 +02:00
Jose Alamos
1de5b34adf
auto_init/cc2538_rf: add support for SubMAC
2020-10-01 10:55:55 +02:00
Francisco
b5c51d244e
Merge pull request #14909 from OTAkeys/pr/conn_can_clean_up
...
can: add proper checks for ifnum validity
2020-10-01 09:22:28 +02:00
3cf082d59b
Merge pull request #15110 from bergzand/pr/suit/storage_backend
...
SUIT: Introduction of a payload storage API for SUIT manifest payloads
2020-09-30 22:47:33 +02:00
Jose Alamos
e100a67099
ieee802154_submac: add initial implementation
2020-09-30 17:25:31 +02:00
Akshai M
a9f7b88624
net/lora : Change defaults
...
Change 'CONFIG_LORA_SF_DEFAULT' to 'SF7' and
'CONFIG_LORA_CR_DEFAULT' to 'LORA_CR_4_5' to
allow shorter air times and make it easier to meet country
specific regulations.
2020-09-30 20:00:03 +05:30
Akshai M
b57365cc7f
net/lora : Update documentation
2020-09-30 20:00:03 +05:30
Akshai M
4dbbd9311d
net/lora : Remove unused macro 'LORA_FIX_LENGTH_PAYLOAD_ON_DEFAULT'
2020-09-30 20:00:03 +05:30
Akshai M
aa83367b4b
net/lora : Expose to Kconfig
2020-09-30 20:00:03 +05:30
Akshai M
399273dba5
net/lora : Move 'LORA_PAYLOAD_LENGTH_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
1629b11801
net/lora : Mode as bool 'LORA_PAYLOAD_CRC_ON_DEFAULT'
...
Modelled 'LORA_PAYLOAD_CRC_ON_DEFAULT' as bool. Introduced
'CONFIG_LORA_PAYLOAD_CRC_OFF_DEFAULT' to invert logic and
tagged 'LORA_PAYLOAD_CRC_ON_DEFAULT' for deprecation
2020-09-30 20:00:03 +05:30
Akshai M
889828ae87
net/lora : Model as bool 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT'
...
Move 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30