浏览代码

qcacld-3.0: Replace channel with frequency in csr

Replace channel ID with frequency in csr.

Change-Id: Ie45056a2153c0e59c393cbf432604033543906f1
CRs-Fixed: 2552053
Tushnim Bhattacharyya 5 年之前
父节点
当前提交
e189d07322
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      core/sme/src/csr/csr_api_roam.c

+ 2 - 4
core/sme/src/csr/csr_api_roam.c

@@ -3203,7 +3203,7 @@ void csr_prune_channel_list_for_mode(struct mac_context *mac_ctx,
 		csr_prune_ch_list(ch_lst, false);
 }
 
-#define INFRA_AP_DEFAULT_CHANNEL 6
+#define INFRA_AP_DEFAULT_CHAN_FREQ 2437
 QDF_STATUS csr_is_valid_channel(struct mac_context *mac, uint8_t chnNum)
 {
 	uint8_t index = 0;
@@ -14566,9 +14566,7 @@ QDF_STATUS csr_roam_issue_start_bss(struct mac_context *mac, uint32_t sessionId,
 		if (csr_is_valid_channel(mac, wlan_reg_freq_to_chan(mac->pdev,
 								    pParam->operation_chan_freq)) !=
 		    QDF_STATUS_SUCCESS) {
-			pParam->operation_chan_freq =
-				wlan_reg_chan_to_freq(mac->pdev,
-						      INFRA_AP_DEFAULT_CHANNEL);
+			pParam->operation_chan_freq = INFRA_AP_DEFAULT_CHAN_FREQ;
 			pParam->ch_params.ch_width = CH_WIDTH_20MHZ;
 		}
 	}