Skip to content

Make the physical layer initialization stage depend on single mobility - #1222

Merged
levy merged 1 commit into
inet-framework:masterfrom
torokati44:fix/physical-layer-after-mobility
Sep 25, 2026
Merged

levy merged 1 commit into
inet-framework:masterfrom
torokati44:fix/physical-layer-after-mobility

Conversation

@torokati44

@torokati44 torokati44 commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

INITSTAGE_PHYSICAL_LAYER depended on GROUP_MOBILITY but not on SINGLE_MOBILITY, although radios and physical layers read the node position while they initialize. Today the order comes out right only because SINGLE_MOBILITY is registered before PHYSICAL_LAYER in InitStages.cc. Nothing in the dependency graph requires it.
Simu5G has carried Define_InitStage_Dependency(PHYSICAL_LAYER, SINGLE_MOBILITY) in its own code to be safe.
This PR adds the dependency to INET.
The stage numbering doesn't change: SINGLE_MOBILITY stays 6 and PHYSICAL_LAYER stays 8.


Devin Review

PHYSICAL_LAYER depended on GROUP_MOBILITY but not on SINGLE_MOBILITY,
although radios and physical layers query the node position during
initialization. The stages are numbered in the right order only because
SINGLE_MOBILITY happens to be registered before PHYSICAL_LAYER; nothing
in the dependency graph guarantees it. Simu5G declares this dependency
itself to be safe.

The stage numbering does not change.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@levy
levy merged commit 49e1fa0 into inet-framework:master Sep 25, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants