From 511634b339c2b55f5662574e23c2c575084788d1 Mon Sep 17 00:00:00 2001 From: Gaurank Kathpalia Date: Tue, 23 Oct 2018 03:41:16 -0700 Subject: [PATCH] Revert "qcacld-3.0: Add check for DBS mode in start bss" this is not required as the session nss has to be 2, which is expected, and helps to shift back to 2x2 from 1x1, while hw mode goes to single MAC mode This reverts commit I54ead1fd26d705a821160b5bc5d816df1d2ab8f4 Change-Id: I3bdcad1df6cc67de2533c89697b8c17d8ac4f573 CRs-Fixed: 2329616 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index 9041a394acf2..c7db4086aef0 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -571,7 +571,6 @@ __lim_handle_sme_start_bss_request(tpAniSirGlobal mac_ctx, uint32_t *msg_buf) uint32_t chanwidth; struct vdev_type_nss *vdev_type_nss; QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; - struct policy_mgr_hw_mode_params hw_mode; /* FEATURE_WLAN_DIAG_SUPPORT */ #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM @@ -839,14 +838,7 @@ __lim_handle_sme_start_bss_request(tpAniSirGlobal mac_ctx, uint32_t *msg_buf) session->ch_center_freq_seg1 = 0; } } - if (policy_mgr_is_hw_dbs_capable(mac_ctx->psoc) && - (policy_mgr_get_current_hw_mode(mac_ctx->psoc, &hw_mode) == - QDF_STATUS_SUCCESS) && - hw_mode.dbs_cap) { - session->nss = 1; - pe_debug("HW is in DBS mode. Nss set to [%d]", - session->nss); - } + if (session->vhtCapability && (session->ch_width > CH_WIDTH_80MHZ)) { session->nss = 1;