Skip to content

drivers: nrf_wifi: Fix deadlock in display scan and recovery #93377

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

Merged

Conversation

krish2718
Copy link
Contributor

When running Zperf traffic + scan in the background eventual we hit a deadlock:

  • sysworkq: recovery->stop_zep->vif_lock->hal_disable->wait lock_rx
  • nrf70_bh_wq: event_tasklet->lock_rx->disp_scan_done->
    disp_scan_res_get_zep-> waiting on vif_lock

The traffic triggers recovery (another bug) and conflicts with display scan.

Fix by moving scan results processing to system workqueue instead of doing it in the FMAC event callback context, this is how supplicant scan also works.

When running Zperf traffic + scan in the background eventual we hit a
deadlock:

 * sysworkq: recovery->stop_zep->vif_lock->hal_disable->wait lock_rx
 * nrf70_bh_wq: event_tasklet->lock_rx->disp_scan_done->
             disp_scan_res_get_zep-> waiting on vif_lock

The traffic triggers recovery (another bug) and conflicts with display
scan.

Fix by moving scan results processing to system workqueue instead of
doing it in the FMAC event callback context, this is how supplicant scan
also works.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Copy link

@krish2718 krish2718 assigned sachinthegreen and unassigned jukkar Jul 24, 2025
@fabiobaltieri fabiobaltieri merged commit 9071704 into zephyrproject-rtos:main Jul 24, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants