Browse Source

qcacld-3.0: Add p2p GO mode check in Radar channel switch

If SAP+GO SCC on DFS channel and Radar event is detected, driver
should move out both SAP and GO to new channel. Add GO mode
check in wlansap_roam_process_dfs_chansw_update API.

Change-Id: I824553222be8a8f21ab6c4ac776a4b1e692ed3da
CRs-Fixed: 3280352
Liangwei Dong 2 years ago
parent
commit
7adfbf01fb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/sap/src/sap_api_link_cntl.c

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

@@ -673,7 +673,8 @@ wlansap_roam_process_dfs_chansw_update(mac_handle_t mac_handle,
 	for (intf = 0; intf < SAP_MAX_NUM_SESSION; intf++) {
 		struct sap_context *sap_context;
 
-		if (!((QDF_SAP_MODE == mac_ctx->sap.sapCtxList[intf].sapPersona)
+		if (!((QDF_SAP_MODE == mac_ctx->sap.sapCtxList[intf].sapPersona ||
+		       QDF_P2P_GO_MODE == mac_ctx->sap.sapCtxList[intf].sapPersona)
 		    && (mac_ctx->sap.sapCtxList[intf].sap_context)))
 			continue;
 		sap_context = mac_ctx->sap.sapCtxList[intf].sap_context;