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

Reverting #12312 as it breaking current WiFI connect()->Disconnect() sequence #12580

Merged
merged 1 commit into from
Mar 10, 2020
Merged

Reverting #12312 as it breaking current WiFI connect()->Disconnect() sequence #12580

merged 1 commit into from
Mar 10, 2020

Conversation

cy-arsm
Copy link

@cy-arsm cy-arsm commented Mar 5, 2020

This reverts commit 18285e1.

Summary of changes

Issue:
In disconnect sequence, whd_emac_wifi_link_state_changed(FALSE) is called which is an asynchronous operation and execution is handled in tcp_ip thread(). As part of this api, it access the interface structure.
remove_ethernet_interface will remove the interface from the netif list, this is a synchronous execution and called after whd_emac_wifi_link_state_changed().
Hence there is synchronization issue, where whd_emac_wifi_link_state_changed() is trying to access the interface structure which is already freed by remove_ehternet_interface(). Hence crash is seen.

Hence reverting the remove interface in SoftAP->stop() and STA->disconnect() as it breaking the current WiFi connect()->disconnect() sequence.

Impact of changes

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[x] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


connect()->Disconnect() sequence

This reverts commit 18285e1
@cy-arsm
Copy link
Author

cy-arsm commented Mar 5, 2020

@0xc0170 @morser499 Have accidentally closed the pull request #12513 while resolving the merge conflicts and not able to re-open it.
Resolved merge conflicts. Please review and approve the same.

@ciarmcom ciarmcom requested review from a team March 5, 2020 12:00
@ciarmcom
Copy link
Member

ciarmcom commented Mar 5, 2020

@cy-arsm, thank you for your changes.
@ARMmbed/mbed-os-ipcore @ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 5, 2020

CI started

@mergify mergify bot added needs: CI and removed needs: review labels Mar 5, 2020
@mergify mergify bot added needs: work and removed needs: CI labels Mar 5, 2020
@mbed-ci
Copy link

mbed-ci commented Mar 5, 2020

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_cloud-client-pytest

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 9, 2020

Client restarted

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 9, 2020

CI completed. @ARMmbed/mbed-os-ipcore Please review

@AnttiKauppila
Copy link

@tymoteuszblochmobica / @mtomczykmobica Please review this

@tymoteuszblochmobica
Copy link
Contributor

Looks OK for me.

@adbridge adbridge merged commit da9f85b into ARMmbed:master Mar 10, 2020
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.

None yet

8 participants