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

Small bug fixes related to cellular connectivity #3926

Merged
merged 3 commits into from
May 24, 2024

Conversation

milan-zededa
Copy link
Contributor

@milan-zededa milan-zededa commented May 21, 2024

3 commits in this PR:

Exclude cellular ports from the last-resort config

Without cellular configuration (APN, etc.), any attempt to connect
through wwan interfaces will always fail.

Do not assume that SIM is absent if its type is not known

I have seen cases where modem would not report SIM card type
(the returned value was not specified), even though the (physical)
SIM card was inserted.
If SIM card type is not known, we can instead determine the card
presence based on the ICCID number availability.

Moreover, when ModemManager is unable to recognize the SIM card type,
EVE would report the type as SimTypePhysical. This is clearly
incorrect, SimTypeUnspecified should be reported instead.

Do not log user password in clear text

Instead the password should be masked and replaced with e.g. asterisks.

Without cellular configuration (APN, etc.), any attempt to connect
through wwan interfaces will always fail.

Signed-off-by: Milan Lenco <milan@zededa.com>
@milan-zededa milan-zededa changed the title Small bug fixes related to the cellular connectivity Small bug fixes related to cellular connectivity May 21, 2024
I have seen cases where modem would not report SIM card type
(the returned value was not specified), even though the (physical)
SIM card was inserted.
If SIM card type is not known, we can instead determine the card
presence based on the ICCID number availability.

Moreover, when ModemManager is unable to recognize the SIM card type,
EVE would report the type as SimTypePhysical. This is clearly
incorrect, SimTypeUnspecified should be reported instead.

Signed-off-by: Milan Lenco <milan@zededa.com>
Instead the password should be masked and replaced with e.g. asterisks.

Signed-off-by: Milan Lenco <milan@zededa.com>
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

Copy link
Member

@uncleDecart uncleDecart left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@rene rene left a comment

Choose a reason for hiding this comment

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

LGTM.

@milan-zededa milan-zededa added stable Should be backported to stable release(s) labels May 24, 2024
@milan-zededa milan-zededa merged commit 0483f48 into lf-edge:master May 24, 2024
44 of 68 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.

4 participants