qcacld-3.0: Add MLME CFG items of rates [PART 1]
Add MLME CFG items of rates
Change-Id: I9f52f2ef0eef4698ddc13c55dd56d938a6e4c677
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index c565ac9..3862d66 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -998,15 +998,10 @@
mlm_start_req->dtimPeriod = (uint8_t) val;
}
- if (wlan_cfg_get_int(mac_ctx, WNI_CFG_CFP_PERIOD, &val) !=
- QDF_STATUS_SUCCESS)
- pe_err("could not retrieve Beacon interval");
- mlm_start_req->cfParamSet.cfpPeriod = (uint8_t) val;
-
- if (wlan_cfg_get_int(mac_ctx, WNI_CFG_CFP_MAX_DURATION, &val) !=
- QDF_STATUS_SUCCESS)
- pe_err("could not retrieve CFPMaxDuration");
- mlm_start_req->cfParamSet.cfpMaxDuration = (uint16_t) val;
+ mlm_start_req->cfParamSet.cfpPeriod =
+ mac_ctx->mlme_cfg->rates.cfp_period;
+ mlm_start_req->cfParamSet.cfpMaxDuration =
+ mac_ctx->mlme_cfg->rates.cfp_max_duration;
/*
* this may not be needed anymore now,