Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

[nrf noup] zephyr: Fix possible race when getting scan results #138

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

jukkar
Copy link
Contributor

@jukkar jukkar commented Dec 4, 2023

The zephyr driver sets the scan_res2_get_in_prog flag to true after starting to get the results. This can cause possible race as the results might be done before the dev_ops->get_scan_results2() returns. This could lead to timeout in the following while loop.

Copy link
Collaborator

@krish2718 krish2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please raise a manifest PR and this should be nrf noup as our upstream is still hostap.git not zephyrrtos

The zephyr driver sets the scan_res2_get_in_prog flag to true
after starting to get the results. This can cause possible
race as the results might be done before the dev_ops->get_scan_results2()
returns. This could lead to timeout in the following while loop.

Signed-off-by: Jukka Rissanen <[email protected]>
@jukkar
Copy link
Contributor Author

jukkar commented Dec 4, 2023

Is the manifest changes really needed yet, the original fix is not yet merged and we do not reference that zephyrrtos repo yet in any manifest.

@jukkar jukkar force-pushed the fix/race-in-scan-results branch from c3de8a4 to 8fd6600 Compare December 4, 2023 11:05
@krish2718
Copy link
Collaborator

Is the manifest changes really needed yet, the original fix is not yet merged and we do not reference that zephyrrtos repo yet in any manifest.

Yes, the manifest for sdk-hostap needs to be updated in sdk-nrf to pull this fix to NCS. Once the zephyrrtos/sdk-hostap is mature then we need to rebase this repo to use that as a upstream.

@jukkar jukkar changed the title [nrf fromlist] zephyr: Fix possible race when getting scan results [nrf noup] zephyr: Fix possible race when getting scan results Dec 4, 2023
@krish2718 krish2718 merged commit c11edbd into nrfconnect:main Dec 6, 2023
1 check passed
@jukkar jukkar deleted the fix/race-in-scan-results branch December 7, 2023 09:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants