qcacld-3.0: Add MLME CFG items of rates [PART 2]
Add MLME CFG items of rates based on converged cfg component Change-Id: If823a2b19e4b828a3f079d2b032067dd5b5ca196 CRs-Fixed: 2322410
This commit is contained in:

committed by
nshrivas

parent
26efc97ff4
commit
e3bbd7fbb4
@@ -316,3 +316,86 @@ ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *buf, qdf_size_t *len)
|
||||
{
|
||||
struct wlan_mlme_psoc_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
mlme_err("mlme obj null");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
return wlan_mlme_get_cfg_str(buf, &mlme_obj->cfg.rates.opr_rate_set,
|
||||
len);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *buf, qdf_size_t *len)
|
||||
{
|
||||
struct wlan_mlme_psoc_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
mlme_err("mlme obj null");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
return wlan_mlme_get_cfg_str(buf, &mlme_obj->cfg.rates.ext_opr_rate_set,
|
||||
len);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *buf, qdf_size_t *len)
|
||||
{
|
||||
struct wlan_mlme_psoc_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
mlme_err("mlme obj null");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
return wlan_mlme_get_cfg_str(buf,
|
||||
&mlme_obj->cfg.rates.supported_mcs_set,
|
||||
len);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *buf, qdf_size_t len)
|
||||
{
|
||||
struct wlan_mlme_psoc_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
mlme_err("mlme obj null");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
return wlan_mlme_set_cfg_str(buf,
|
||||
&mlme_obj->cfg.rates.supported_mcs_set,
|
||||
len);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *buf, qdf_size_t *len)
|
||||
{
|
||||
struct wlan_mlme_psoc_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
mlme_err("mlme obj null");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
return wlan_mlme_get_cfg_str(buf,
|
||||
&mlme_obj->cfg.rates.current_mcs_set,
|
||||
len);
|
||||
}
|
||||
|
Reference in New Issue
Block a user