qcacld-3.0: Stop sap if there is no available channel

When radar is found, the current channel is put in NOL list and the state
is set as CHANNEL_STATE_DISABLE.

So change the channel state check from wlan_reg_is_dfs_ch to
wlan_reg_is_passive_or_disable_ch

Change-Id: If0595682100746cb12ddb8a1c3ca0106ccd1af21
CRs-Fixed: 2178842
This commit is contained in:
bings 2018-01-25 17:17:07 +08:00 • committed by snandini
commit 38b3d4f66c

View file

@ -1066,7 +1066,8 @@ wlansap_roam_callback(void *ctx, struct csr_roam_info *csr_roam_info,
pSapContext =
mac_ctx->sap.sapCtxList[intf].pSapContext;
profile = &pSapContext->csr_roamProfile;
if (!wlan_reg_is_dfs_ch(mac_ctx->pdev,
if (!wlan_reg_is_passive_or_disable_ch(
mac_ctx->pdev,
profile->operationChannel))
continue;
QDF_TRACE(QDF_MODULE_ID_SAP,