qcacld-3.0: Skip channel validation in case of acs

qcacld-2.0 to qcacld-3.0 propagation

As per current implementaion whenever ACS is enabled via
INI all the update beacon from cfg80211 module fails because
sapconfig channel points to AUTO_CHANNEL_SELECT(0).

When driver ACS is enabled skip channel validation to fix
this issue.

Change-Id: Ie3e7d19332629fc860752b2240690fd6a15bb0a2
CRs-Fixed: 977101
This commit is contained in:
Rajeev Kumar Sirasanagandla
2016-09-09 16:24:31 +05:30
committed by Gerrit - the friendly Code Review server
父節點 60d6ca7a54
當前提交 a00060280e

查看文件

@@ -6983,22 +6983,28 @@ int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter,
} }
} }
if (QDF_STATUS_SUCCESS != /*
* If auto channel is configured i.e. channel is 0,
* so skip channel validation.
*/
if (AUTO_CHANNEL_SELECT != pConfig->channel) {
if (QDF_STATUS_SUCCESS !=
wlan_hdd_validate_operation_channel(pHostapdAdapter, wlan_hdd_validate_operation_channel(pHostapdAdapter,
pConfig->channel)) { pConfig->channel)) {
hdd_err("Invalid Channel [%d]", hdd_err("Invalid Channel [%d]",
pConfig->channel); pConfig->channel);
ret = -EINVAL; ret = -EINVAL;
goto error; goto error;
} }
/* reject SAP if DFS channel scan is not allowed */ /* reject SAP if DFS channel scan is not allowed */
if (!(pHddCtx->config->enableDFSChnlScan) && if (!(pHddCtx->config->enableDFSChnlScan) &&
(CHANNEL_STATE_DFS == cds_get_channel_state( (CHANNEL_STATE_DFS == cds_get_channel_state(
pConfig->channel))) { pConfig->channel))) {
hdd_err("not allowed to start SAP on DFS channel"); hdd_err("No SAP start on DFS channel");
ret = -EOPNOTSUPP; ret = -EOPNOTSUPP;
goto error; goto error;
}
} }
wlansap_set_dfs_ignore_cac(hHal, iniConfig->ignoreCAC); wlansap_set_dfs_ignore_cac(hHal, iniConfig->ignoreCAC);
wlansap_set_dfs_restrict_japan_w53(hHal, wlansap_set_dfs_restrict_japan_w53(hHal,