qcacld-3.0: Skip CAC if precac is done already for the vdev

No need to run CAC again if precac is done already for the
SAP vdev.

Change-Id: Icfdd8c3fdb3404143b085a47fd7772270e8dca76
CRs-Fixed: 2850434
This commit is contained in:
Tushnim Bhattacharyya
2021-01-05 15:52:36 -08:00
committed by snandini
parent 6986768224
commit 5f7310258b

View File

@@ -6473,7 +6473,10 @@ static void lim_process_sme_channel_change_request(struct mac_context *mac_ctx,
session_entry->curr_op_freq = target_freq;
session_entry->limRFBand = lim_get_rf_band(
session_entry->curr_op_freq);
session_entry->cac_duration_ms = ch_change_req->cac_duration_ms;
if (mlme_get_cac_required(session_entry->vdev))
session_entry->cac_duration_ms = ch_change_req->cac_duration_ms;
else
session_entry->cac_duration_ms = 0;
session_entry->dfs_regdomain = ch_change_req->dfs_regdomain;
session_entry->maxTxPower = max_tx_pwr;