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

Fix missing global up callback in CellularContext #15311

Merged
merged 2 commits into from
Aug 3, 2022

Conversation

skazemi
Copy link
Contributor

@skazemi skazemi commented Jul 25, 2022

Summary of changes

Fix an issue where CellularContext::do_connect_with_retry() does not call validate_ip_address() and also NSAPI_STATUS_GLOBAL_UP callback on successful connect after retry in blocking mode

Fixes #15310

Impact of changes

This fix makes any workaround for the callback not being called unnecessary/redundant

Migration actions required

Documentation

None


Pull request type

[x] Patch update (Bug fix)

Test results

[x] Behavioral test is done for this change and shows the issue is fixed. However it is obvious from the logic that the missing callback is needed.

Reviewers

@LDong-Arm
@talorion


Fix an issue where CellularContext::do_connect_with_retry() does not call NSAPI_STATUS_GLOBAL_UP callback on successful connect after failed try in blocking mode.
Fix an issue where CellularContext::do_connect_with_retry() does not call NSAPI_STATUS_GLOBAL_UP callback and validate_ip_address() on successful connect after failed try in blocking mode.
@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Jul 25, 2022
@ciarmcom ciarmcom requested review from LDong-Arm and a team July 25, 2022 09:30
@ciarmcom
Copy link
Member

@skazemi, thank you for your changes.
@LDong-Arm @ARMmbed/mbed-os-maintainers please review.

@mergify mergify bot added needs: CI and removed needs: review labels Aug 3, 2022
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 3, 2022

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 3, 2022

Jenkins CI Test : ✔️ SUCCESS

Build Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In some cases CellularContext does not call NSAPI_STATUS_GLOBAL_UP callback in blocking mode
6 participants