-
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
Add synchronization and switching between WhdSoftAPInterface and WhdSTAInterfaces #11578
Conversation
@cydriftcloud, thank you for your changes. |
features/netsocket/emac-drivers/TARGET_WHD/interface/WhdSTAInterface.cpp
Show resolved
Hide resolved
@cydriftcloud please can you remove the merge commit against this PR and use a rebase instead. Ty. |
6d6cb95
to
e286b2e
Compare
e286b2e
to
a3ee443
Compare
@adbridge I have updated the PR with recommended changes. Also I have added a few additional changes that dealing with synchronization and switching that should go along with this PR. Please help review and provide feedbacks. |
@adbridge Can you please remove the need work label as the work has been done and PR has been updated. @bulislaw and @maclobdell can you help to review the new change? |
features/netsocket/emac-drivers/TARGET_WHD/interface/whd_interface.h
Outdated
Show resolved
Hide resolved
Restarted travis, should be green @ARMmbed/mbed-os-ipcore Please review |
Travis green, now time for review |
- A shared mutex is added for synchronization - ScopedMutexLock is used to to protect - SoftAP: start, stop - STA: scan, join, disconnect - Fix switching issue between SoftAP and STA mode for primary interface - Avoid reinit primary interface by getting mapping the current interface to the other one which is already on - In concurrent mode, STA is the default if it is up, otherwise SoftAP is default. - For non-concurrent mode, the most recent started interface is set as default.
a3ee443
to
28884b5
Compare
CI started while we get requested reviews |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@ARMmbed/mbed-os-ipcore Please review, if approved we could integrate it today |
Description
Currently, there is no synchronization between STA and SoftAP interfaces which shares the same underlying WHD device. Synchronization mechanism using lock_guard is added to serialize operations including
Also resolved switching issue between SoftAP and STA mode for primary interface
Pull request type
Reviewers
Release Notes