summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/sme/src/csr/csr_api_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c
index 8338b3f4b116..c06a086a14a9 100644
--- a/core/sme/src/csr/csr_api_scan.c
+++ b/core/sme/src/csr/csr_api_scan.c
@@ -2887,7 +2887,7 @@ static void csr_purge_scan_results(tpAniSirGlobal mac_ctx)
uint64_t curr_time = (uint64_t)qdf_mc_timer_get_system_time();
int8_t weakest_rssi = 0;
- csr_ll_unlock(&mac_ctx->scan.scanResultList);
+ csr_ll_lock(&mac_ctx->scan.scanResultList);
pentry = csr_ll_peek_head(&mac_ctx->scan.scanResultList,
LL_ACCESS_NOLOCK);
while (pentry) {