Skip to content
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

lpac: don't override env vars in the wrapper #25046

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bam80
Copy link
Contributor

@bam80 bam80 commented Sep 27, 2024

Some env variables sensitive for proper lpac functioning are set by upper lpac wrappers such as lpac-libmbim-wrapper.
If that's the case, we shouldn't override them, otherwise the wrapper won't work.

Also fixes problem with AT ADPU backend where debug is always on due AT_DEBUG is always exported.

Also, we shouldn't interpret values of the debug env
variables. Instead, we just pass them as is if the
corresponding uci optioins exist.

fixes #25035

Maintainer: @blocktrron

Description:
alternative to #25036

Some env variables sensitive for proper lpac functioning
can be set by upper lpac wrappers such as lpac-libmbim-wrapper.
If that's the case, we shouldn't override them,
otherwise the wrapper won't work.

Also, we shouldn't interpret values of the debug env
variables. Instead, we just pass them as is if the
corresponding uci optioins exist.

fixes openwrt#25035

Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
@bam80 bam80 marked this pull request as ready for review September 27, 2024 17:15
@bam80 bam80 changed the title lpac: fix the wrapper lpac: don't override env vars in the wrapper Sep 27, 2024
@blocktrron
Copy link
Member

blocktrron commented Oct 1, 2024

I will have a look at this next week when I'm back.

Regarding the change of the default values on the logging behavior - you can leave the default values from UCI set and just modify the env when it differs from the default value. This is possible, as the default iven in the packaged UCI file matches the behavior if the environment variables were unset.

I can take care of that also, i have a straight-forward solution in my head.

@bam80
Copy link
Contributor Author

bam80 commented Oct 1, 2024

@blocktrron sorry I'm not sure I quite understand what you said.
The problem with your handling of the debug options, as I see it, is that you have to interpret their values, which our scripts shouldn't do anyway.
My suggestion solves it, too.

@blocktrron
Copy link
Member

Sorry, i was quite busy last month (I did not forget about it though).

See #25258 for my approach to tackle this.

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.

lpac: lpac-libmbim-wrapper doesn't work
2 participants