Skip to content

netdev_ieee802154: return PDU based on PHY mode#12937

Closed
benpicco wants to merge 2 commits intoRIOT-OS:masterfrom
benpicco:ieee802154g_pdu
Closed

netdev_ieee802154: return PDU based on PHY mode#12937
benpicco wants to merge 2 commits intoRIOT-OS:masterfrom
benpicco:ieee802154g_pdu

Conversation

@benpicco
Copy link
Contributor

Contribution description

IEEE 802.15.4g-2012 defines new PHY modes (MR-O-QPSK, MR-OFDM and MR-FSK) with a PDU of 2047 bytes.

Devices like at86rf215 can support both the old mode(s) as well as the new ones, so the IP stack has to be informed about the PDU change when the modulation changes.

I introduced a new NETOPT_IEEE802154_PHY to get/set the phy mode.

For GNRC to use the new MTU, gnrc_netif_ipv6_init_mtu() has to be called.
Now I don't know where this should be called.

Calling it in gnrc_netif_set_from_netdev() won't work since at this point the command hasn't reached the driver yet and the old PDU would be returned.

Another option would be calling it in the driver, but that would mean a layering violation.

Or is there a way to register a callback to be executed after a netif command?

Testing procedure

nothing to test yet

Issues/PRs references

alternative to #12835

This adds PHY modes for IEEE 802.15.4-2003 and IEEE 802.15.4g-2012.
@benpicco benpicco added Area: network Area: Networking State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet Type: new feature The issue requests / The PR implemements a new feature for RIOT Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR labels Dec 12, 2019
@benpicco benpicco requested review from jia200x and miri64 December 12, 2019 15:18
IEEE 802.15.4g-2012 specifies a PDU of 2047 for it's PHY modes, so
query the driver for the mode before returning the PDU.
@benpicco
Copy link
Contributor Author

0ecb4c2 includes an updated version that doesn't force the round-trip to the driver if no module with the new modes is used.

@benpicco benpicco closed this May 8, 2020
@benpicco
Copy link
Contributor Author

benpicco commented May 8, 2020

obsolete now

@benpicco benpicco deleted the ieee802154g_pdu branch May 8, 2020 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants