summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Kodukula <quic_akodukul@quicinc.com>2021-01-21 21:09:14 +0530
committerchenpaul <chenpaul@google.com>2021-02-03 14:54:08 +0800
commit23a32e604ae46fafb5bde7ec9a2b65b25756a386 (patch)
tree3f144b2cea5e8b7afb18c17100e893afe1dcb5d3
parent3a6741f873d6d2f8925bae065ff69cbdb8404dcf (diff)
downloadqcacld-23a32e604ae46fafb5bde7ec9a2b65b25756a386.tar.gz
qcacld-3.0: Update vdev id in bssIdx of bss param
To process vdev start response fail event or wma vdev start timeout event, host uses bssIdx of bss param as vdev ID, but host doesn't update vdev ID in bssIdx of bss param while filling wma req for vdev start req. Hence update bssIdx of bss param with vdev id from start response or wma req vdev ID. Change-Id: I2132bbe6b7ced8c5631d10efad17666413b5a403 CRs-Fixed: 2860053 Bug: 178297222 Signed-off-by: Aditya Kodukula <quic_akodukul@quicinc.com>
-rw-r--r--core/wma/src/wma_dev_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c
index 2b22952e7d..15515f3368 100644
--- a/core/wma/src/wma_dev_if.c
+++ b/core/wma/src/wma_dev_if.c
@@ -920,6 +920,7 @@ static void wma_vdev_start_rsp(tp_wma_handle wma,
BSS_OPERATIONAL_MODE_IBSS ? "IBSS" : "non-IBSS");
#endif /* QCA_IBSS_SUPPORT */
+ add_bss->bssIdx = resp_event->vdev_id;
if (resp_event->status) {
add_bss->status = QDF_STATUS_E_FAILURE;
goto send_fail_resp;
@@ -961,7 +962,6 @@ static void wma_vdev_start_rsp(tp_wma_handle wma,
__func__, bcn, bcn->buf);
}
add_bss->status = QDF_STATUS_SUCCESS;
- add_bss->bssIdx = resp_event->vdev_id;
add_bss->chainMask = resp_event->chain_mask;
if ((2 != resp_event->cfgd_rx_streams) ||
(2 != resp_event->cfgd_tx_streams)) {
@@ -3788,7 +3788,7 @@ void wma_vdev_resp_timer(void *data)
if (wma_send_vdev_stop_to_fw(wma, tgt_req->vdev_id))
WMA_LOGE("%s: Failed to send vdev stop to fw",
__func__);
-
+ params->bssIdx = tgt_req->vdev_id;
wma_remove_peer_on_add_bss_failure(params);
wma_send_msg_high_priority(wma, WMA_ADD_BSS_RSP,