瀏覽代碼

qcacld-3.0: Wait for Nss update only in the case of beaconing modes

Ensure that the wait for Nss update happens only in the case of
beaconing modes. Nss update request is done only in the case of
beaconing modes. As part of Nss update callback, check for Nss
update is being done for all modes due to which subsequent hardware
mode change is not getting initiated. Fix the same by ensuring that
the check for Nss update happens only in the case of beaconing
modes.

Change-Id: Icf975661236dba54d2948484445b0509e15f1da0
CRs-Fixed: 1011483
Manishekar Chandrasekaran 9 年之前
父節點
當前提交
009d6cfbe7
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      core/cds/src/cds_concurrency.c

+ 10 - 2
core/cds/src/cds_concurrency.c

@@ -5976,7 +5976,11 @@ bool cds_wait_for_nss_update(uint8_t action)
 				[conn_index].tx_spatial_stream == 2) &&
 				(conc_connection_list
 				[conn_index].rx_spatial_stream == 2) &&
-				conc_connection_list[conn_index].in_use) {
+				conc_connection_list[conn_index].in_use &&
+				((conc_connection_list[conn_index].mode ==
+				CDS_P2P_GO_MODE) ||
+				(conc_connection_list[conn_index].mode ==
+				CDS_SAP_MODE))) {
 				wait = true;
 				break;
 			}
@@ -5991,7 +5995,11 @@ bool cds_wait_for_nss_update(uint8_t action)
 				[conn_index].tx_spatial_stream == 1) &&
 				(conc_connection_list
 				[conn_index].rx_spatial_stream == 1) &&
-				conc_connection_list[conn_index].in_use) {
+				conc_connection_list[conn_index].in_use &&
+				((conc_connection_list[conn_index].mode ==
+				CDS_P2P_GO_MODE) ||
+				(conc_connection_list[conn_index].mode ==
+				CDS_SAP_MODE))) {
 				wait = true;
 				break;
 			}