瀏覽代碼

qcacld-3.0: Fill channel width when selected channel is invalid

When no channel is selected from ACS and fallback channel
is invalid, a default channel is selected but the channel
width remains invalid due to which ASSERT is happening.

Whenever default channel is selected, select default channel
width of 20 MHz as well.

Change-Id: I885e01d1324484b84e04675238d2e1f8cd10e30c
CRS-Fixed: 2112806
Himanshu Agarwal 7 年之前
父節點
當前提交
10b44364a0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/sme/src/csr/csr_api_roam.c

+ 3 - 1
core/sme/src/csr/csr_api_roam.c

@@ -13731,8 +13731,10 @@ QDF_STATUS csr_roam_issue_start_bss(tpAniSirGlobal pMac, uint32_t sessionId,
 	pParam->ssidHidden = pProfile->SSIDs.SSIDList[0].ssidHidden;
 	if (CSR_IS_INFRA_AP(pProfile) && (pParam->operationChn != 0)) {
 		if (csr_is_valid_channel(pMac, pParam->operationChn) !=
-		    QDF_STATUS_SUCCESS)
+		    QDF_STATUS_SUCCESS) {
 			pParam->operationChn = INFRA_AP_DEFAULT_CHANNEL;
+			pParam->ch_params.ch_width = CH_WIDTH_20MHZ;
+		}
 	}
 	pParam->protEnabled = pProfile->protEnabled;
 	pParam->obssProtEnabled = pProfile->obssProtEnabled;