-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #12513
Conversation
@cy-arsm, thank you for your changes. |
Would it be worth adding a reason for the revert (using --edit when reverting), same that is here in description ? |
Not only title, but also commit message. |
@morser499 can you review the changes. Have reverted back the remove_ethernet_interface logic |
CI started meanwhile |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
CI restarted, internal fault |
Test run: FAILEDSummary: 1 of 8 test jobs failed Failed test jobs:
|
@ARMmbed/mbed-os-ipcore Is this fine to go in? |
@0xc0170 i have updated the summary comments with reason for the failure. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
Once rebased ,will restart CI |
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
Test results
Reviewers