mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-20 16:07:22 +00:00
nimble/ll: Fix not clearing scan rsp on scan duration timeout
If timeout fired when we were waiting for scan response, scan_rsp_pending would be left set and this would trigger assert when starting next scan.
This commit is contained in:
@@ -1269,6 +1269,12 @@ ble_ll_scan_sm_stop(int chk_disable)
|
||||
scansm->ext_scanning = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Update backoff if we failed to receive scan response */
|
||||
if (scansm->scan_rsp_pending) {
|
||||
scansm->scan_rsp_pending = 0;
|
||||
ble_ll_scan_req_backoff(scansm, 0);
|
||||
}
|
||||
OS_EXIT_CRITICAL(sr);
|
||||
|
||||
/* Count # of times stopped */
|
||||
|
||||
Reference in New Issue
Block a user