-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenThread] Layering inversion in OpenThread platforms #30596
Comments
src/platform/nxp/common/ConfigurationManagerImpl.cpp also seems to have |
These seem to be the wrong inlcudes. OpenThread.hpp needs to be fixed, the others may need case-by-case handling. |
This was referenced Nov 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to be since #19474:
When
CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT
is enabled, we havesrc/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp
includingsrc/app/Server.h
.The reason it does that is so it runs:
Server::GetInstance().RejoinExistingMulticastGroups();
This makes platform (one of the lowest level things in our code) depend on app (which is the top level thing). We should instead switch to some sort of event system or figure out how to move this
RejoinExistingMulticastGroups
around to fix dependency.Sideffect of this is that things like
${chip_root}/src/lib/address_resolve:default_address_resolve_config
has to be added to every thread platform (because Server needs address resolution) and we do not want that.The text was updated successfully, but these errors were encountered: