You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "MariuszSkamra (via GitHub)" <gi...@apache.org> on 2025/07/25 09:52:24 UTC

[PR] nimble/ll: Fix race condition in aux scan [mynewt-nimble]

MariuszSkamra opened a new pull request, #2087:
URL: https://github.com/apache/mynewt-nimble/pull/2087

   This fixes race condition in aux scan what was observed on Harmony. During extended scan, the HCI Reset called, that stops the active scan and clears the scan state machine. The scan stop itself, if scan response is pending, and calls ble_ll_scan_aux_sched_remove that pokes the active scan backup (from LL via event queue). The problem is that the SM is cleared already when backoff is called, which causes an assert in ble_ll_scan_req_backoff function.
   
   This change ensures the ble_ll_scan_req_backoff is called from ble_ll_reset() function context. ble_ll_reset is always called from LL task context.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] nimble/ll: Fix race condition in aux scan [mynewt-nimble]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #2087:
URL: https://github.com/apache/mynewt-nimble/pull/2087#issuecomment-6336209015

   This pull request had no activity for 12 months and is marked as stale. If it is still valid, please rebase it on current base branch. Stale pull requests are not closed automatically, the label is removed on any update or comment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] nimble/ll: Fix race condition in aux scan [mynewt-nimble]

Posted by "MariuszSkamra (via GitHub)" <gi...@apache.org>.
MariuszSkamra commented on PR #2087:
URL: https://github.com/apache/mynewt-nimble/pull/2087#issuecomment-6523964576

   @andrzej-kaczmarek ^^


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org