qcacld-3.0: Rename mlme_update APIs to mlme_init
Rename mlme_update APIs in wlan_mlme_main.c to mlme_init as these APIs initialize the MLME structures and init is a more appropriate for these APIs. Also re-order defines in CFG_MLME_ALL to be in alphabetic order similar to CFG_ALL Change-Id: Ia8e10d86c62cc46230ef4c3d51c9588eaa1a5477 CRs-Fixed: 2318497
This commit is contained in:

committed by
nshrivas

parent
cca46f12d0
commit
e258cced61
@@ -50,8 +50,9 @@ struct wlan_mlme_psoc_obj {
|
||||
*
|
||||
* Return: QDF_STATUS status in case of success else return error
|
||||
*/
|
||||
QDF_STATUS mlme_psoc_object_created_notification(
|
||||
struct wlan_objmgr_psoc *psoc, void *arg);
|
||||
QDF_STATUS
|
||||
mlme_psoc_object_created_notification(struct wlan_objmgr_psoc *psoc,
|
||||
void *arg);
|
||||
|
||||
/**
|
||||
* mlme_psoc_object_destroyed_notification(): mlme psoc delete handler
|
||||
@@ -62,8 +63,9 @@ QDF_STATUS mlme_psoc_object_created_notification(
|
||||
*
|
||||
* Return: QDF_STATUS status in case of success else return error
|
||||
*/
|
||||
QDF_STATUS mlme_psoc_object_destroyed_notification(
|
||||
struct wlan_objmgr_psoc *psoc, void *arg);
|
||||
QDF_STATUS
|
||||
mlme_psoc_object_destroyed_notification(struct wlan_objmgr_psoc *psoc,
|
||||
void *arg);
|
||||
|
||||
/**
|
||||
* mlme_cfg_on_psoc_enable() - Populate MLME structure from CFG and INI
|
||||
|
@@ -34,8 +34,9 @@ struct wlan_mlme_psoc_obj *mlme_get_psoc_obj(struct wlan_objmgr_psoc *psoc)
|
||||
return mlme_obj;
|
||||
}
|
||||
|
||||
QDF_STATUS mlme_psoc_object_created_notification(
|
||||
struct wlan_objmgr_psoc *psoc, void *arg)
|
||||
QDF_STATUS
|
||||
mlme_psoc_object_created_notification(struct wlan_objmgr_psoc *psoc,
|
||||
void *arg)
|
||||
{
|
||||
QDF_STATUS status;
|
||||
struct wlan_mlme_psoc_obj *mlme_obj;
|
||||
@@ -58,8 +59,9 @@ QDF_STATUS mlme_psoc_object_created_notification(
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS mlme_psoc_object_destroyed_notification(
|
||||
struct wlan_objmgr_psoc *psoc, void *arg)
|
||||
QDF_STATUS
|
||||
mlme_psoc_object_destroyed_notification(struct wlan_objmgr_psoc *psoc,
|
||||
void *arg)
|
||||
{
|
||||
struct wlan_mlme_psoc_obj *mlme_obj = NULL;
|
||||
QDF_STATUS status;
|
||||
@@ -115,9 +117,8 @@ static void mlme_init_chainmask_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
cfg_get(psoc, CFG_RX_CHAIN_MASK_5G);
|
||||
}
|
||||
|
||||
static void mlme_update_ht_cap_in_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
struct mlme_ht_capabilities_info
|
||||
*ht_cap_info)
|
||||
static void mlme_init_ht_cap_in_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_mlme_ht_caps *ht_caps)
|
||||
{
|
||||
union {
|
||||
uint16_t val_16;
|
||||
@@ -135,7 +136,7 @@ static void mlme_update_ht_cap_in_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
u.default_ht_cap_info.short_gi_40_mhz =
|
||||
cfg_get(psoc, CFG_SHORT_GI_40MHZ);
|
||||
|
||||
*ht_cap_info = u.default_ht_cap_info;
|
||||
ht_caps->ht_cap_info = u.default_ht_cap_info;
|
||||
}
|
||||
|
||||
static void mlme_init_qos_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
@@ -178,7 +179,7 @@ static void mlme_init_mbo_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
cfg_get(psoc, CFG_MBO_CAND_RSSI_BTC_THRESHOLD);
|
||||
}
|
||||
|
||||
static void mlme_update_rates_in_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
static void mlme_init_rates_in_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_mlme_rates *rates)
|
||||
{
|
||||
rates->cfp_period = cfg_default(CFG_CFP_PERIOD);
|
||||
@@ -192,7 +193,7 @@ static void mlme_update_rates_in_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
CFG_INI_DISABLE_HIGH_HT_RX_MCS_2x2);
|
||||
}
|
||||
|
||||
static void mlme_update_sap_protection_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
static void mlme_init_sap_protection_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_mlme_sap_protection
|
||||
*sap_protection_params)
|
||||
{
|
||||
@@ -204,7 +205,7 @@ static void mlme_update_sap_protection_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
cfg_get(psoc, CFG_IGNORE_PEER_HT_MODE);
|
||||
}
|
||||
|
||||
static void mlme_update_sap_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
static void mlme_init_sap_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_mlme_cfg_sap *sap_cfg)
|
||||
{
|
||||
sap_cfg->beacon_interval = cfg_get(psoc, CFG_BEACON_INTERVAL);
|
||||
@@ -294,7 +295,7 @@ static void mlme_init_sta_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
(uint32_t)cfg_default(CFG_CURRENT_RSSI);
|
||||
}
|
||||
|
||||
static void wlan_mlme_init_lfr_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
static void mlme_init_lfr_cfg(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_mlme_lfr_cfg *lfr)
|
||||
{
|
||||
lfr->mawc_roam_enabled =
|
||||
@@ -535,16 +536,16 @@ QDF_STATUS mlme_cfg_on_psoc_enable(struct wlan_objmgr_psoc *psoc)
|
||||
}
|
||||
|
||||
mlme_cfg = &mlme_obj->cfg;
|
||||
mlme_update_ht_cap_in_cfg(psoc, &mlme_cfg->ht_caps.ht_cap_info);
|
||||
mlme_init_ht_cap_in_cfg(psoc, &mlme_cfg->ht_caps);
|
||||
mlme_init_mbo_cfg(psoc, &mlme_cfg->mbo_cfg);
|
||||
mlme_init_qos_cfg(psoc, &mlme_cfg->qos_mlme_params);
|
||||
mlme_update_rates_in_cfg(psoc, &mlme_cfg->rates);
|
||||
mlme_update_sap_protection_cfg(psoc, &mlme_cfg->sap_protection_cfg);
|
||||
mlme_init_rates_in_cfg(psoc, &mlme_cfg->rates);
|
||||
mlme_init_sap_protection_cfg(psoc, &mlme_cfg->sap_protection_cfg);
|
||||
mlme_init_chainmask_cfg(psoc, &mlme_cfg->chainmask_cfg);
|
||||
mlme_update_sap_cfg(psoc, &mlme_cfg->sap_cfg);
|
||||
mlme_init_sap_cfg(psoc, &mlme_cfg->sap_cfg);
|
||||
mlme_init_obss_ht40_cfg(psoc, &mlme_cfg->obss_ht40);
|
||||
mlme_init_sta_cfg(psoc, &mlme_cfg->sta);
|
||||
wlan_mlme_init_lfr_cfg(psoc, &mlme_cfg->lfr);
|
||||
mlme_init_lfr_cfg(psoc, &mlme_cfg->lfr);
|
||||
mlme_init_scoring_cfg(psoc, &mlme_cfg->scoring);
|
||||
|
||||
return status;
|
||||
|
@@ -36,18 +36,19 @@
|
||||
#include "cfg_mlme_sap.h"
|
||||
#include "cfg_mlme_scoring.h"
|
||||
|
||||
/* Please Maintain Alphabetic Order here */
|
||||
#define CFG_MLME_ALL \
|
||||
CFG_CHAINMASK_ALL \
|
||||
CFG_HT_CAPS_ALL \
|
||||
CFG_LFR_ALL \
|
||||
CFG_OBSS_HT40_ALL \
|
||||
CFG_MBO_ALL \
|
||||
CFG_VHT_CAPS_ALL \
|
||||
CFG_OBSS_HT40_ALL \
|
||||
CFG_QOS_ALL \
|
||||
CFG_RATES_ALL \
|
||||
CFG_SAP_PROTECTION_ALL \
|
||||
CFG_SAP_ALL \
|
||||
CFG_SAP_PROTECTION_ALL \
|
||||
CFG_SCORING_ALL \
|
||||
CFG_STA_ALL \
|
||||
CFG_SCORING_ALL
|
||||
CFG_VHT_CAPS_ALL
|
||||
|
||||
#endif /* __CFG_MLME_H */
|
||||
|
Reference in New Issue
Block a user