-
Notifications
You must be signed in to change notification settings - Fork 3k
Corrected mbed-mesh-api thread/6lowpan tasklets interface disconnect/connect #7878
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
Conversation
@SeppoTakalo @artokin Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style changes - still needs to be done for this modules? I think yes, so shall do soon
@@ -130,6 +134,11 @@ nsapi_error_t Nanostack::Interface::register_phy() | |||
{ | |||
NanostackLockGuard lock; | |||
|
|||
if (_device_id >= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an equivalent but differently-written equivalent to this hunk in the pending https://github.com/ARMmbed/mbed-os/pull/7818/files. Could you make it match, to avoid conflicts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed my changes to rf phy registration from MeshInterfaceNanostack.cpp. Issues will be fixed in your pull request.
Removed main tasklet ID and used instead tasklet id. Added check for valid interface ID to network scan timer start so that it is not triggered after disconnect. Added small delay to re-connect so that stack has time to send its status events to application after disconnect.
Added check for valid interface ID to network scan timer start so that it is not triggered after disconnect. Added variable for mac api so that it is not tried to set again after re-connecting.
/morph build |
Build : SUCCESSBuild number : 2926 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 2546 |
Test : SUCCESSBuild number : 2677 |
/morph export-build |
Exporter Build : SUCCESSBuild number : 2553 |
This is dependency or not? |
Thanks, I tagged both for 5.10. This could potentially be in 5.9.7 . |
Description
Thread tasklet: Added check for valid interface ID to network scan timer start so that it is not triggered after disconnect. Added variable for mac api so that it is not tried to set again after re-connecting.
6lowpan tasklet: Removed main tasklet ID and used instead tasklet id. Added check for valid interface ID to network scan timer start so that it is not triggered after disconnect. Added small delay to re-connect
so that stack has time to send its status events to application after disconnect.
This pull request and changes from:
#7818
Fixes issue:
#5023
Pull request type