Merge "qcacld-3.0: Replace legacy string in vdevmgr with ext" into wlan-cld3.driver.lnx.2.0
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
84c557dffc
10
Kbuild
10
Kbuild
@@ -893,7 +893,7 @@ MLME_OBJS := $(MLME_DIR)/core/src/wlan_mlme_main.o \
|
|||||||
$(MLME_DIR)/dispatcher/src/wlan_mlme_api.o \
|
$(MLME_DIR)/dispatcher/src/wlan_mlme_api.o \
|
||||||
$(MLME_DIR)/dispatcher/src/wlan_mlme_ucfg_api.o
|
$(MLME_DIR)/dispatcher/src/wlan_mlme_ucfg_api.o
|
||||||
|
|
||||||
ifeq ($(CONFIG_VDEV_SM), y)
|
ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
|
||||||
MLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_vdev_mgr_interface.o
|
MLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_vdev_mgr_interface.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -2357,8 +2357,12 @@ cppflags-$(CONFIG_LITHIUM) += -DPEER_PROTECTED_ACCESS
|
|||||||
#Enable STATE MACHINE HISTORY
|
#Enable STATE MACHINE HISTORY
|
||||||
cppflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
|
cppflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
|
||||||
#Enable VDEV STATE MACHINE
|
#Enable VDEV STATE MACHINE
|
||||||
cppflags-$(CONFIG_CMN_VDEV_MLME_SM) += -DCMN_VDEV_MLME_SM_ENABLE
|
ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
|
||||||
cppflags-$(CONFIG_VDEV_SM) += -DCONFIG_VDEV_SM
|
cppflags-y += -DCMN_VDEV_MLME_SM_ENABLE \
|
||||||
|
-DCMN_VDEV_MLME_CMPT_ENABLE \
|
||||||
|
-DCONFIG_VDEV_SM
|
||||||
|
cppflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
|
||||||
|
endif
|
||||||
|
|
||||||
# Vendor Commands
|
# Vendor Commands
|
||||||
cppflags-$(CONFIG_FEATURE_RSSI_MONITOR) += -DFEATURE_RSSI_MONITOR
|
cppflags-$(CONFIG_FEATURE_RSSI_MONITOR) += -DFEATURE_RSSI_MONITOR
|
||||||
|
@@ -55,7 +55,7 @@ struct wlan_mlme_nss_chains *mlme_get_dynamic_vdev_config(
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return &mlme_priv->dynamic_cfg;
|
return &mlme_priv->dynamic_cfg;
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,7 @@ struct wlan_mlme_nss_chains *mlme_get_ini_vdev_config(
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return &mlme_priv->ini_cfg;
|
return &mlme_priv->ini_cfg;
|
||||||
}
|
}
|
||||||
|
@@ -449,7 +449,7 @@ QDF_STATUS mlme_set_chan_switch_in_progress(struct wlan_objmgr_vdev *vdev,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
mlme_priv->chan_switch_in_progress = val;
|
mlme_priv->chan_switch_in_progress = val;
|
||||||
|
|
||||||
@@ -467,7 +467,7 @@ bool mlme_is_chan_switch_in_progress(struct wlan_objmgr_vdev *vdev)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return mlme_priv->chan_switch_in_progress;
|
return mlme_priv->chan_switch_in_progress;
|
||||||
}
|
}
|
||||||
@@ -485,7 +485,7 @@ ap_mlme_set_hidden_ssid_restart_in_progress(struct wlan_objmgr_vdev *vdev,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
mlme_priv->hidden_ssid_restart_in_progress = val;
|
mlme_priv->hidden_ssid_restart_in_progress = val;
|
||||||
|
|
||||||
@@ -503,7 +503,7 @@ bool ap_mlme_is_hidden_ssid_restart_in_progress(struct wlan_objmgr_vdev *vdev)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return mlme_priv->hidden_ssid_restart_in_progress;
|
return mlme_priv->hidden_ssid_restart_in_progress;
|
||||||
}
|
}
|
||||||
@@ -519,7 +519,7 @@ QDF_STATUS mlme_set_connection_fail(struct wlan_objmgr_vdev *vdev, bool val)
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
mlme_priv->connection_fail = val;
|
mlme_priv->connection_fail = val;
|
||||||
|
|
||||||
@@ -537,7 +537,7 @@ bool mlme_is_connection_fail(struct wlan_objmgr_vdev *vdev)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return mlme_priv->connection_fail;
|
return mlme_priv->connection_fail;
|
||||||
}
|
}
|
||||||
@@ -554,7 +554,7 @@ QDF_STATUS mlme_set_assoc_type(struct wlan_objmgr_vdev *vdev,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
mlme_priv->assoc_type = assoc_type;
|
mlme_priv->assoc_type = assoc_type;
|
||||||
|
|
||||||
@@ -572,7 +572,7 @@ enum vdev_assoc_type mlme_get_assoc_type(struct wlan_objmgr_vdev *vdev)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return mlme_priv->assoc_type;
|
return mlme_priv->assoc_type;
|
||||||
}
|
}
|
||||||
@@ -589,7 +589,7 @@ mlme_set_vdev_start_failed(struct wlan_objmgr_vdev *vdev, bool val)
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
mlme_priv->vdev_start_failed = val;
|
mlme_priv->vdev_start_failed = val;
|
||||||
|
|
||||||
@@ -607,25 +607,25 @@ bool mlme_get_vdev_start_failed(struct wlan_objmgr_vdev *vdev)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->legacy_vdev_ptr;
|
mlme_priv = (struct mlme_legacy_priv *)vdev_mlme->ext_vdev_ptr;
|
||||||
|
|
||||||
return mlme_priv->vdev_start_failed;
|
return mlme_priv->vdev_start_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mlme_legacy_hdl_create () - Create mlme legacy priv object
|
* vdevmgr_mlme_ext_hdl_create () - Create mlme legacy priv object
|
||||||
* @vdev_mlme: vdev mlme object
|
* @vdev_mlme: vdev mlme object
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS
|
* Return: QDF_STATUS
|
||||||
*/
|
*/
|
||||||
static
|
static
|
||||||
QDF_STATUS mlme_legacy_hdl_create(struct vdev_mlme_obj *vdev_mlme)
|
QDF_STATUS vdevmgr_mlme_ext_hdl_create(struct vdev_mlme_obj *vdev_mlme)
|
||||||
{
|
{
|
||||||
vdev_mlme->legacy_vdev_ptr =
|
vdev_mlme->ext_vdev_ptr =
|
||||||
qdf_mem_malloc(sizeof(struct mlme_legacy_priv));
|
qdf_mem_malloc(sizeof(struct mlme_legacy_priv));
|
||||||
if (!vdev_mlme->legacy_vdev_ptr) {
|
if (!vdev_mlme->ext_vdev_ptr) {
|
||||||
mlme_err("failed to allocate meory for legacy_vdev_ptr");
|
mlme_err("failed to allocate meory for ext_vdev_ptr");
|
||||||
return QDF_STATUS_E_NOMEM;
|
return QDF_STATUS_E_NOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -633,16 +633,16 @@ QDF_STATUS mlme_legacy_hdl_create(struct vdev_mlme_obj *vdev_mlme)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mlme_legacy_hdl_destroy () - Destroy mlme legacy priv object
|
* vdevmgr_mlme_ext_hdl_destroy () - Destroy mlme legacy priv object
|
||||||
* @vdev_mlme: vdev mlme object
|
* @vdev_mlme: vdev mlme object
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS
|
* Return: QDF_STATUS
|
||||||
*/
|
*/
|
||||||
static
|
static
|
||||||
QDF_STATUS mlme_legacy_hdl_destroy(struct vdev_mlme_obj *vdev_mlme)
|
QDF_STATUS vdevmgr_mlme_ext_hdl_destroy(struct vdev_mlme_obj *vdev_mlme)
|
||||||
{
|
{
|
||||||
qdf_mem_free(vdev_mlme->legacy_vdev_ptr);
|
qdf_mem_free(vdev_mlme->ext_vdev_ptr);
|
||||||
vdev_mlme->legacy_vdev_ptr = NULL;
|
vdev_mlme->ext_vdev_ptr = NULL;
|
||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
@@ -666,14 +666,13 @@ static QDF_STATUS ap_vdev_dfs_cac_timer_stop(struct vdev_mlme_obj *vdev_mlme,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct sta_mlme_ops - VDEV MLME operation callbacks strucutre for sta
|
* struct sta_mlme_ops - VDEV MLME operation callbacks strucutre for sta
|
||||||
* @mlme_vdev_validate_basic_params: callback to validate VDEV basic params
|
|
||||||
* @mlme_vdev_reset_proto_params: callback to Reset protocol params
|
|
||||||
* @mlme_vdev_start_send: callback to initiate actions of VDEV
|
* @mlme_vdev_start_send: callback to initiate actions of VDEV
|
||||||
* MLME start operation
|
* MLME start operation
|
||||||
* @mlme_vdev_restart_send: callback to initiate actions of VDEV
|
* @mlme_vdev_restart_send: callback to initiate actions of VDEV
|
||||||
* MLME restart operation
|
* MLME restart operation
|
||||||
* @mlme_vdev_stop_start_send: callback to block start/restart VDEV
|
* @mlme_vdev_stop_start_send: callback to block start/restart VDEV
|
||||||
* request command
|
* request command
|
||||||
|
* @mlme_vdev_sta_conn_start: callback to initiate connection
|
||||||
* @mlme_vdev_start_continue: callback to initiate operations on
|
* @mlme_vdev_start_continue: callback to initiate operations on
|
||||||
* LMAC/FW start response
|
* LMAC/FW start response
|
||||||
* @mlme_vdev_up_send: callback to initiate actions of VDEV
|
* @mlme_vdev_up_send: callback to initiate actions of VDEV
|
||||||
@@ -683,20 +682,17 @@ static QDF_STATUS ap_vdev_dfs_cac_timer_stop(struct vdev_mlme_obj *vdev_mlme,
|
|||||||
* @mlme_vdev_update_beacon: callback to initiate beacon update
|
* @mlme_vdev_update_beacon: callback to initiate beacon update
|
||||||
* @mlme_vdev_disconnect_peers: callback to initiate disconnection of
|
* @mlme_vdev_disconnect_peers: callback to initiate disconnection of
|
||||||
* peers
|
* peers
|
||||||
* @mlme_vdev_dfs_cac_timer_stop: callback to stop the DFS CAC timer
|
|
||||||
* @mlme_vdev_stop_send: callback to initiate actions of VDEV
|
* @mlme_vdev_stop_send: callback to initiate actions of VDEV
|
||||||
* MLME stop operation
|
* MLME stop operation
|
||||||
* @mlme_vdev_stop_continue: callback to initiate operations on
|
* @mlme_vdev_stop_continue: callback to initiate operations on
|
||||||
* LMAC/FW stop response
|
* LMAC/FW stop response
|
||||||
* @mlme_vdev_bss_peer_delete_continue: callback to initiate operations on BSS
|
|
||||||
* peer delete completion
|
|
||||||
* @mlme_vdev_down_send: callback to initiate actions of VDEV
|
* @mlme_vdev_down_send: callback to initiate actions of VDEV
|
||||||
* MLME down operation
|
* MLME down operation
|
||||||
* @mlme_vdev_legacy_hdl_create: callback to invoke creation of legacy
|
* @mlme_vdev_notify_down_complete: callback to notify VDEV MLME on moving
|
||||||
|
* to INIT state
|
||||||
|
* @mlme_vdev_ext_hdl_create: callback to invoke creation of legacy
|
||||||
* vdev object
|
* vdev object
|
||||||
* @mlme_vdev_legacy_hdl_post_create: callback to invoke post creation actions
|
* @mlme_vdev_ext_hdl_destroy: callback to invoke destroy of legacy
|
||||||
* of legacy vdev object
|
|
||||||
* @mlme_vdev_legacy_hdl_destroy: callback to invoke destroy of legacy
|
|
||||||
* vdev object
|
* vdev object
|
||||||
*/
|
*/
|
||||||
static struct vdev_mlme_ops sta_mlme_ops = {
|
static struct vdev_mlme_ops sta_mlme_ops = {
|
||||||
@@ -711,8 +707,8 @@ static struct vdev_mlme_ops sta_mlme_ops = {
|
|||||||
.mlme_vdev_stop_continue = vdevmgr_mlme_stop_continue,
|
.mlme_vdev_stop_continue = vdevmgr_mlme_stop_continue,
|
||||||
.mlme_vdev_down_send = vdevmgr_mlme_vdev_down_send,
|
.mlme_vdev_down_send = vdevmgr_mlme_vdev_down_send,
|
||||||
.mlme_vdev_notify_down_complete = vdevmgr_notify_down_complete,
|
.mlme_vdev_notify_down_complete = vdevmgr_notify_down_complete,
|
||||||
.mlme_vdev_legacy_hdl_create = mlme_legacy_hdl_create,
|
.mlme_vdev_ext_hdl_create = vdevmgr_mlme_ext_hdl_create,
|
||||||
.mlme_vdev_legacy_hdl_destroy = mlme_legacy_hdl_destroy,
|
.mlme_vdev_ext_hdl_destroy = vdevmgr_mlme_ext_hdl_destroy,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -742,9 +738,9 @@ static struct vdev_mlme_ops sta_mlme_ops = {
|
|||||||
* MLME down operation
|
* MLME down operation
|
||||||
* @mlme_vdev_notify_down_complete: callback to notify VDEV MLME on moving
|
* @mlme_vdev_notify_down_complete: callback to notify VDEV MLME on moving
|
||||||
* to INIT state
|
* to INIT state
|
||||||
* @mlme_vdev_legacy_hdl_create: callback to invoke creation of legacy
|
* @mlme_vdev_ext_hdl_create: callback to invoke creation of legacy
|
||||||
* vdev object
|
* vdev object
|
||||||
* @mlme_vdev_legacy_hdl_destroy: callback to invoke destroy of legacy
|
* @mlme_vdev_ext_hdl_destroy: callback to invoke destroy of legacy
|
||||||
* vdev object
|
* vdev object
|
||||||
*/
|
*/
|
||||||
static struct vdev_mlme_ops ap_mlme_ops = {
|
static struct vdev_mlme_ops ap_mlme_ops = {
|
||||||
@@ -762,6 +758,6 @@ static struct vdev_mlme_ops ap_mlme_ops = {
|
|||||||
.mlme_vdev_stop_continue = vdevmgr_mlme_stop_continue,
|
.mlme_vdev_stop_continue = vdevmgr_mlme_stop_continue,
|
||||||
.mlme_vdev_down_send = vdevmgr_mlme_vdev_down_send,
|
.mlme_vdev_down_send = vdevmgr_mlme_vdev_down_send,
|
||||||
.mlme_vdev_notify_down_complete = vdevmgr_notify_down_complete,
|
.mlme_vdev_notify_down_complete = vdevmgr_notify_down_complete,
|
||||||
.mlme_vdev_legacy_hdl_create = mlme_legacy_hdl_create,
|
.mlme_vdev_ext_hdl_create = vdevmgr_mlme_ext_hdl_create,
|
||||||
.mlme_vdev_legacy_hdl_destroy = mlme_legacy_hdl_destroy,
|
.mlme_vdev_ext_hdl_destroy = vdevmgr_mlme_ext_hdl_destroy,
|
||||||
};
|
};
|
||||||
|
@@ -715,8 +715,9 @@ CONFIG_PLD_PCIE_INIT_FLAG := y
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#Enable STATE MACHINE HISTORY
|
|
||||||
CONFIG_SM_ENG_HIST := n
|
|
||||||
#Enable VDEV STATE MACHINE
|
#Enable VDEV STATE MACHINE
|
||||||
CONFIG_CMN_VDEV_MLME_SM := n
|
CONFIG_CMN_VDEV_MLME_SM := n
|
||||||
CONFIG_VDEV_SM := n
|
ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
|
||||||
|
#Enable STATE MACHINE HISTORY
|
||||||
|
CONFIG_SM_ENG_HIST := n
|
||||||
|
endif
|
||||||
|
@@ -8251,7 +8251,6 @@ QDF_STATUS lim_ap_mlme_vdev_start_req_failed(struct vdev_mlme_obj *vdev_mlme,
|
|||||||
{
|
{
|
||||||
struct mac_context *mac_ctx;
|
struct mac_context *mac_ctx;
|
||||||
|
|
||||||
/* store mac ctx in vdev_mlme legacy_vdev_ptr?*/
|
|
||||||
mac_ctx = cds_get_context(QDF_MODULE_ID_PE);
|
mac_ctx = cds_get_context(QDF_MODULE_ID_PE);
|
||||||
if (!mac_ctx) {
|
if (!mac_ctx) {
|
||||||
pe_err("mac_ctx is NULL");
|
pe_err("mac_ctx is NULL");
|
||||||
|
Reference in New Issue
Block a user