Эх сурвалжийг харах

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
bings 7 жил өмнө
parent
commit
38b3d4f66c

+ 2 - 1
core/sap/src/sap_api_link_cntl.c

@@ -1066,7 +1066,8 @@ wlansap_roam_callback(void *ctx, struct csr_roam_info *csr_roam_info,
 				pSapContext =
 				pSapContext =
 				    mac_ctx->sap.sapCtxList[intf].pSapContext;
 				    mac_ctx->sap.sapCtxList[intf].pSapContext;
 				profile = &pSapContext->csr_roamProfile;
 				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))
 						profile->operationChannel))
 					continue;
 					continue;
 				QDF_TRACE(QDF_MODULE_ID_SAP,
 				QDF_TRACE(QDF_MODULE_ID_SAP,