diff options
author | Rajeev Kumar <quic_rajekuma@quicinc.com> | 2019-05-14 11:14:11 +0530 |
---|---|---|
committer | Rajeev Kumar <quic_rajekuma@quicinc.com> | 2019-05-16 11:25:42 -0700 |
commit | 199bbf563213921641fdfee8d53d73c297f76239 (patch) | |
tree | 43fd8ade67304b18631c0ca49cb193f2d6b87c44 | |
parent | 2664cebee43f606aefbc013cceddbcd7ce8f94f1 (diff) | |
download | qcacld-199bbf563213921641fdfee8d53d73c297f76239.tar.gz |
qcacld-3.0: Post scan req on priority to sme queue
If sme queue has many req pending and scan req is posted with low
priority the scan req may not get processed for long time. This
may lead to hdd_scan_inactivity_timer trigger and assert.
To fix this post the scan req to sme queue with priority so that
it will get processed before other pending commands in sme queue.
Change-Id: I503837a906ee9b14290c1cf681a83c17b699f6a7
Bug: 131740036
CRs-Fixed: 2452594
Signed-off-by: Rajeev Kumar <quic_rajekuma@quicinc.com>
-rw-r--r-- | core/sme/src/common/sme_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 6f8a4d3fe7..7f35338077 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3388,7 +3388,8 @@ QDF_STATUS sme_scan_request(tHalHandle hal, uint8_t session_id, msg.reserved = 0; msg.bodyval = 0; if (QDF_STATUS_SUCCESS != - cds_mq_post_message(QDF_MODULE_ID_SME, &msg)) { + cds_mq_post_message_by_priority(QDF_MODULE_ID_SME, + &msg, HIGH_PRIORITY)) { sme_err("sme_scan_req failed to post msg"); csr_scan_free_request(mac_ctx, scan_msg->scan_param); qdf_mem_free(scan_msg->scan_param); |