[riot-notifications] [RIOT-OS/RIOT] gnrc_netif: relax 6lo MTU assertion for 802.15.4g (#14172)
notifications at github.com
Fri May 29 16:03:31 CEST 2020
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
### Contribution description
802.15.4g devices have a 2047 byte PDU.
So the assertion `netif->ipv6.mtu == IPV6_MIN_MTU` is too strict here.
This is only enforced on init, so changing the modulation at run-time did not catch this bug.
### Testing procedure
To test, use e.g. `at86rf215` with
CFLAGS += -DAT86RF215_DEFAULT_PHY_MODE=IEEE802154_PHY_MR_OQPSK
and flash `examples/gnrc_networking`.
On `master` the this leads to a failed `assert()`.
### Issues/PRs references
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* gnrc_netif: relax 6lo MTU assertion for 802.15.4g
-- File Changes --
M sys/net/gnrc/netif/gnrc_netif.c (2)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications