Skip to content

lib: location: Use k_sem_give() when cancelling Wi-Fi location#36

Merged
dmitryalexeevemcraft merged 1 commit intoemcraft-v2.8.0-branchfrom
RT-1000-1072
Mar 24, 2026
Merged

lib: location: Use k_sem_give() when cancelling Wi-Fi location#36
dmitryalexeevemcraft merged 1 commit intoemcraft-v2.8.0-branchfrom
RT-1000-1072

Conversation

@dmitryalexeevemcraft
Copy link
Copy Markdown

If location is cancelled during Wi-Fi search, the semaphore blocking the location positioning workqueue is not released due to k_sem_reset() being used instead of k_sem_give(). This prevents subsequent location requests to start Wi-Fi scans. This commit changes k_sem_reset() to k_sem_give() and adds a test for this scenario.
Integrate upstream commit: nrfconnect/sdk-nrf@eccac9b

If location is cancelled during Wi-Fi search, the semaphore
blocking the location positioning workqueue is not released due to
k_sem_reset() being used instead of k_sem_give(). This prevents
subsequent location requests to start Wi-Fi scans.
This commit changes k_sem_reset() to k_sem_give() and adds a test
for this scenario.
Integrate upstream commit: nrfconnect/sdk-nrf@eccac9b

Signed-off-by: Dmitry Alexeyev <dmitry.alexeev@emcraft.com>
@dmitryalexeevemcraft dmitryalexeevemcraft merged commit a57781a into emcraft-v2.8.0-branch Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants