Explorar o código

qcacld-3.0: Set cac duration to pe session in vdev start

When DFS and CAC are full offload, driver passes cac duration time
to FW in vdev start wmi command. Currently when SAP starts in DFS
channel, cac duration is passed as 0.

Cac duration should be set to pe session when vdev starts, then it
can be passed to FW correctly.

Change-Id: Ica2ae344d6734df89e22b088dea7a5059f1370f9
CRs-Fixed: 2548492
bings %!s(int64=5) %!d(string=hai) anos
pai
achega
b3a1cfe3be
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 3 - 1
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -885,7 +885,9 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
 		if (LIM_IS_AP_ROLE(session)) {
 			mlm_start_req->dtimPeriod = session->dtimPeriod;
 			mlm_start_req->wps_state = session->wps_state;
-
+			session->cac_duration_ms =
+				mlm_start_req->cac_duration_ms;
+			session->dfs_regdomain = mlm_start_req->dfs_regdomain;
 		} else {
 			val = mac_ctx->mlme_cfg->sap_cfg.dtim_interval;
 			mlm_start_req->dtimPeriod = (uint8_t) val;