qcacld-3.0: Remove redundant logic in csr_is_valid_channel

sapDfsChannelNolList and numCurrentRegDomainDfsChannels
fields in sap dfs info is not populated and is used in
csr_is_valid_channel.

Fix is to remove the redundant logic in csr_is_valid_channel.

Change-Id: Ib98423ba910a1947a908f4a74762f82183aa89d5
CRs-Fixed: 2374080
This commit is contained in:
Yeshwanth Sriram Guntuka
2019-01-07 16:04:52 +05:30
committed by nshrivas
parent cba75498f2
commit 261ac4d56e
2 changed files with 0 additions and 23 deletions

View File

@@ -626,8 +626,6 @@ typedef struct sSapDfsInfo {
* generation and transmission * generation and transmission
*/ */
uint8_t csaIERequired; uint8_t csaIERequired;
uint8_t numCurrentRegDomainDfsChannels;
tSapDfsNolInfo sapDfsChannelNolList[NUM_5GHZ_CHANNELS];
uint8_t is_dfs_cac_timer_running; uint8_t is_dfs_cac_timer_running;
/* /*
* New channel width and new channel bonding mode * New channel width and new channel bonding mode

View File

@@ -2852,27 +2852,6 @@ QDF_STATUS csr_is_valid_channel(struct mac_context *mac, uint8_t chnNum)
} }
} }
if (status == QDF_STATUS_SUCCESS) {
/* dfs nol */
for (index = 0;
index <
mac->sap.SapDfsInfo.numCurrentRegDomainDfsChannels;
index++) {
tSapDfsNolInfo *dfsChan = &mac->sap.SapDfsInfo.
sapDfsChannelNolList[index];
if ((dfsChan->dfs_channel_number == chnNum)
&& (dfsChan->radar_status_flag ==
eSAP_DFS_CHANNEL_UNAVAILABLE)) {
QDF_TRACE(QDF_MODULE_ID_SME,
QDF_TRACE_LEVEL_ERROR,
FL("channel %d is in dfs nol"),
chnNum);
status = QDF_STATUS_E_FAILURE;
break;
}
}
}
if (QDF_STATUS_SUCCESS != status) { if (QDF_STATUS_SUCCESS != status) {
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR, QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
FL("channel %d is not available"), chnNum); FL("channel %d is not available"), chnNum);