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

ModemManager: enable all available FCC-unlock scripts #3549

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

milan-zededa
Copy link
Contributor

FCC-locked modems are in disabled state and in low-power mode. ModemManager is not able to use locked modem unless a suitable FCC-unlock procedure is triggered. For some widely used modems, MM provides FCC-unlock scripts. However, in some cases, these scripts are a result of reverse engineering of proprietary unlock utilities and may not work correctly. Therefore, these scripts are disabled by default.

We already had a situation where FCC unlock was required by an EVE user. We will therefore enable all FCC unlock scripts and then potentially disable only those for which issues will be reported. More info in the documentation that was added.

Additionally in this PR, there is a small improvement in terms of errors reported for failed connectivity setup. mmagent tries to find more useful reason for failure than context.DeadlineExceeded.

FCC-locked modems are in disabled state and in low-power mode.
ModemManager is not able to use locked modem unless a suitable
FCC-unlock procedure is triggered.
For some widely used modems, MM provides FCC-unlock scripts.
However, in some cases, these scripts are a result of reverse
engineering of proprietary unlock utilities. Therefore, these
scripts are disabled by default.
We already had a situation where FCC unlock was required by
an EVE user.
We will therefore enable all FCC unlock scripts and then
potentially disable only those for which issues will be reported.
More info in the documentation that was added.

Signed-off-by: Milan Lenco <[email protected]>
When attempt to establish cellular connectivity fails, we want to
publish error that helps users to determine the root cause. Context
deadline exceeded is rarely usefull.
With this commit, mmagent tries to find the real reason behind the
timeout, and only returns the original DeadlineExceeded if it cannot
do any better.

Signed-off-by: Milan Lenco <[email protected]>
@milan-zededa milan-zededa added the stable Should be backported to stable release(s) label Oct 31, 2023
@milan-zededa
Copy link
Contributor Author

Marking as stable because it will be needed in 11.x LTS

Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8b1f5ba) 19.45% compared to head (fb05a34) 19.43%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3549      +/-   ##
==========================================
- Coverage   19.45%   19.43%   -0.02%     
==========================================
  Files         230      230              
  Lines       50057    50057              
==========================================
- Hits         9737     9729       -8     
- Misses      39612    39618       +6     
- Partials      708      710       +2     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@uncleDecart
Copy link
Member

LGTM

@eriknordmark eriknordmark merged commit f001135 into lf-edge:master Nov 1, 2023
23 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable Should be backported to stable release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants