# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/lmac/src/mm/mm_task.h File Reference

MAC Management task declarations. More...

`#include "co_int.h"`
`#include "co_bool.h"`
`#include "ke_task.h"`
`#include "mac.h"`
`#include "phy.h"`

Go to the source code of this file.

## Data Structures
struct | mm_start_req
| Structure containing the parameters of the MM_START_REQ message. More...
struct | mm_set_channel_req
| Structure containing the parameters of the MM_SET_CHANNEL_REQ message. More...
struct | mm_set_channel_cfm
| Structure containing the parameters of the MM_SET_CHANNEL_CFM message. More...
struct | mm_set_dtim_req
| Structure containing the parameters of the MM_SET_DTIM_REQ message. More...
struct | mm_set_power_req
| Structure containing the parameters of the MM_SET_POWER_REQ message. More...
struct | mm_set_power_cfm
| Structure containing the parameters of the MM_SET_POWER_CFM message. More...
struct | mm_set_beacon_int_req
| Structure containing the parameters of the MM_SET_BEACON_INT_REQ message. More...
struct | mm_set_basic_rates_req
| Structure containing the parameters of the MM_SET_BASIC_RATES_REQ message. More...
struct | mm_set_bssid_req
| Structure containing the parameters of the MM_SET_BSSID_REQ message. More...
struct | mm_set_filter_req
| Structure containing the parameters of the MM_SET_FILTER_REQ message. More...
struct | mm_add_if_req
| Structure containing the parameters of the MM_ADD_IF_REQ message. More...
struct | mm_set_edca_req
| Structure containing the parameters of the MM_SET_EDCA_REQ message. More...
struct | mm_set_mu_edca_req
| Structure containing the parameters of the MM_SET_MU_EDCA_REQ message. More...
struct | mm_set_uora_req
| Structure containing the parameters of the MM_SET_UORA_REQ message. More...
struct | mm_set_txop_rts_thres_req
| Structure containing the parameters of the MM_SET_TXOP_RTS_THRES_REQ message. More...
struct | mm_set_bss_color_req
| Structure containing the parameters of the MM_SET_BSS_COLOR_REQ message. More...
struct | mm_set_slottime_req
| Structure containing the parameters of the MM_SET_SLOTTIME_REQ message. More...
struct | mm_set_mode_req
| Structure containing the parameters of the MM_SET_MODE_REQ message. More...
struct | mm_set_vif_state_req
| Structure containing the parameters of the MM_SET_VIF_STATE_REQ message. More...
struct | mm_add_if_cfm
| Structure containing the parameters of the MM_ADD_IF_CFM message. More...
struct | mm_remove_if_req
| Structure containing the parameters of the MM_REMOVE_IF_REQ message. More...
struct | mm_version_cfm
| Structure containing the parameters of the MM_VERSION_CFM message. More...
struct | mm_sta_add_req
| Structure containing the parameters of the MM_STA_ADD_REQ message. More...
struct | mm_sta_add_cfm
| Structure containing the parameters of the MM_STA_ADD_CFM message. More...
struct | mm_sta_del_req
| Structure containing the parameters of the MM_STA_DEL_REQ message. More...
struct | mm_sta_del_cfm
| Structure containing the parameters of the MM_STA_DEL_CFM message. More...
struct | mm_set_idle_req
| Structure containing the parameters of the MM_SET_IDLE_REQ message. More...
struct | mm_key_add_req
| Structure containing the parameters of the MM_KEY_ADD_REQ message. More...
struct | mm_key_add_cfm
| Structure containing the parameters of the MM_KEY_ADD_CFM message. More...
struct | mm_key_del_req
| Structure containing the parameters of the MM_KEY_DEL_REQ message. More...
struct | mm_ba_add_req
| Structure containing the parameters of the MM_BA_ADD_REQ message. More...
struct | mm_ba_add_cfm
| Structure containing the parameters of the MM_BA_ADD_CFM message. More...
struct | mm_ba_del_req
| Structure containing the parameters of the MM_BA_DEL_REQ message. More...
struct | mm_ba_del_cfm
| Structure containing the parameters of the MM_BA_DEL_CFM message. More...
struct | mm_channel_switch_ind
| Structure containing the parameters of the MM_CHANNEL_SWITCH_IND message. More...
struct | mm_channel_pre_switch_ind
| Structure containing the parameters of the MM_CHANNEL_PRE_SWITCH_IND message. More...
struct | mm_connection_loss_ind
| Structure containing the parameters of the MM_CONNECTION_LOSS_IND message. More...
struct | mm_dbg_trigger_req
| Structure containing the parameters of the MM_DBG_TRIGGER_REQ message. More...
struct | mm_set_ps_mode_req
| Structure containing the parameters of the MM_SET_PS_MODE_REQ message. More...
struct | mm_chan_ctxt_add_req
| Structure containing the parameters of the MM_CHAN_CTXT_ADD_REQ message. More...
struct | mm_chan_ctxt_add_cfm
| Structure containing the parameters of the MM_CHAN_CTXT_ADD_REQ message. More...
struct | mm_chan_ctxt_del_req
| Structure containing the parameters of the MM_CHAN_CTXT_DEL_REQ message. More...
struct | mm_chan_ctxt_link_req
| Structure containing the parameters of the MM_CHAN_CTXT_LINK_REQ message. More...
struct | mm_chan_ctxt_unlink_req
| Structure containing the parameters of the MM_CHAN_CTXT_UNLINK_REQ message. More...
struct | mm_chan_ctxt_update_req
| Structure containing the parameters of the MM_CHAN_CTXT_UPDATE_REQ message. More...
struct | mm_chan_ctxt_sched_req
| Structure containing the parameters of the MM_CHAN_CTXT_SCHED_REQ message. More...
struct | mm_bcn_change_req
| Structure containing the parameters of the MM_BCN_CHANGE_REQ message. More...
struct | mm_tim_update_req
| Structure containing the parameters of the MM_TIM_UPDATE_REQ message. More...
struct | mm_ps_change_ind
| Structure containing the parameters of the MM_PS_CHANGE_IND message. More...
struct | mm_p2p_vif_ps_change_ind
| Structure containing the parameters of the MM_P2P_VIF_PS_CHANGE_IND message. More...
struct | mm_traffic_req_ind
| Structure containing the parameters of the MM_TRAFFIC_REQ_IND message. More...
struct | mm_remain_on_channel_req
| Structure containing the parameters of the MM_REMAIN_ON_CHANNEL_REQ message. More...
struct | mm_remain_on_channel_cfm
| Structure containing the parameters of the MM_REMAIN_ON_CHANNEL_CFM message. More...
struct | mm_remain_on_channel_exp_ind
| Structure containing the parameters of the MM_REMAIN_ON_CHANNEL_EXP_IND message. More...
struct | mm_set_ps_options_req
| Structure containing the parameters of the MM_SET_PS_OPTIONS_REQ message. More...
struct | mm_csa_counter_ind
| Structure containing the parameters of the MM_CSA_COUNTER_IND message. More...
struct | mm_channel_survey_ind
| Structure containing the parameters of the MM_CHANNEL_SURVEY_IND message. More...
struct | mm_bfmer_enable_req
| Structure containing the parameters of the MM_BFMER_ENABLE_REQ message. More...
struct | mm_cfg_rssi_req
| Structure containing the parameters of the MM_CFG_RSSI_REQ message. More...
struct | mm_rssi_status_ind
| Structure containing the parameters of the MM_RSSI_STATUS_IND message. More...
struct | mm_pktloss_ind
| Structure containing the parameters of the MM_PKTLOSS_IND message. More...
struct | mm_csa_finish_ind
| Structure containing the parameters of the MM_CSA_FINISH_IND message. More...
struct | mm_csa_traffic_ind
| Structure containing the parameters of the MM_CSA_TRAFFIC_IND message. More...
struct | mm_force_idle_req
| Structure containing the parameters of the MM_FORCE_IDLE_REQ message. More...
struct | mm_tbtt_move_req
| Structure containing the parameters of the MM_TBTT_MOVE_REQ message. More...
struct | mm_set_p2p_noa_req
| Structure containing the parameters of the MM_SET_P2P_NOA_REQ message. More...
struct | mm_set_p2p_oppps_req
| Structure containing the parameters of the MM_SET_P2P_OPPPS_REQ message. More...
struct | mm_set_p2p_noa_cfm
| Structure containing the parameters of the MM_SET_P2P_NOA_CFM message. More...
struct | mm_set_p2p_oppps_cfm
| Structure containing the parameters of the MM_SET_P2P_OPPPS_CFM message. More...
struct | mm_p2p_noa_upd_ind
| Structure containing the parameters of the MM_P2P_NOA_UPD_IND message. More...
struct | mm_mu_group_update_req
| Structure containing the parameters of the MM_MU_GROUP_UPDATE_REQ message. More...
struct | mm_ant_div_init_req
| Structure containing the parameters of the MM_ANT_DIV_INIT_REQ message. More...
## Defines
#define | MM_IDX_MAX 1
| MM STA TASK Instance Max.
#define | BCN_MAX_CSA_CPT 2
| Maximum number of CSA counter in a BEACON (1 in CSA IE and 1 in ECSA IE).
## Typedefs
typedef void(* | cb_idle_func_ptr )(void)
| Pointer to callback function.
## Enumerations
enum | mm_state_tag { MM_IDLE, MM_ACTIVE, MM_GOING_TO_IDLE, MM_HOST_BYPASSED, MM_NO_IDLE, MM_STATE_MAX }
| Possible States of the MM STA Task. More...
enum | mm_remain_on_channel_op { MM_ROC_OP_START = 0, MM_ROC_OP_CANCEL, MM_ROC_OP_MAX }
| Remain on channel operation codes.
enum | mm_msg_tag { MM_RESET_REQ = KE_FIRST_MSG(TASK_MM), MM_RESET_CFM, MM_START_REQ, MM_START_CFM, MM_VERSION_REQ, MM_VERSION_CFM, MM_ADD_IF_REQ, MM_ADD_IF_CFM, MM_REMOVE_IF_REQ, MM_REMOVE_IF_CFM, MM_STA_ADD_REQ, MM_STA_ADD_CFM, MM_STA_DEL_REQ, MM_STA_DEL_CFM, MM_SET_FILTER_REQ, MM_SET_FILTER_CFM, MM_SET_CHANNEL_REQ, MM_SET_CHANNEL_CFM, MM_SET_DTIM_REQ, MM_SET_DTIM_CFM, MM_SET_BEACON_INT_REQ, MM_SET_BEACON_INT_CFM, MM_SET_BASIC_RATES_REQ, MM_SET_BASIC_RATES_CFM, MM_SET_BSSID_REQ, MM_SET_BSSID_CFM, MM_SET_EDCA_REQ, MM_SET_EDCA_CFM, MM_SET_MODE_REQ, MM_SET_MODE_CFM, MM_SET_VIF_STATE_REQ, MM_SET_VIF_STATE_CFM, MM_SET_SLOTTIME_REQ, MM_SET_SLOTTIME_CFM, MM_SET_IDLE_REQ, MM_SET_IDLE_CFM, MM_KEY_ADD_REQ, MM_KEY_ADD_CFM, MM_KEY_DEL_REQ, MM_KEY_DEL_CFM, MM_BA_ADD_REQ, MM_BA_ADD_CFM, MM_BA_DEL_REQ, MM_BA_DEL_CFM, MM_PRIMARY_TBTT_IND, MM_SECONDARY_TBTT_IND, MM_SET_POWER_REQ, MM_SET_POWER_CFM, MM_DBG_TRIGGER_REQ, MM_SET_PS_MODE_REQ, MM_SET_PS_MODE_CFM, MM_CHAN_CTXT_ADD_REQ, MM_CHAN_CTXT_ADD_CFM, MM_CHAN_CTXT_DEL_REQ, MM_CHAN_CTXT_DEL_CFM, MM_CHAN_CTXT_LINK_REQ, MM_CHAN_CTXT_LINK_CFM, MM_CHAN_CTXT_UNLINK_REQ, MM_CHAN_CTXT_UNLINK_CFM, MM_CHAN_CTXT_UPDATE_REQ, MM_CHAN_CTXT_UPDATE_CFM, MM_CHAN_CTXT_SCHED_REQ, MM_CHAN_CTXT_SCHED_CFM, MM_BCN_CHANGE_REQ, MM_BCN_CHANGE_CFM, MM_TIM_UPDATE_REQ, MM_TIM_UPDATE_CFM, MM_CONNECTION_LOSS_IND, MM_CHANNEL_SWITCH_IND, MM_CHANNEL_PRE_SWITCH_IND, MM_REMAIN_ON_CHANNEL_REQ, MM_REMAIN_ON_CHANNEL_CFM, MM_REMAIN_ON_CHANNEL_EXP_IND, MM_PS_CHANGE_IND, MM_TRAFFIC_REQ_IND, MM_SET_PS_OPTIONS_REQ, MM_SET_PS_OPTIONS_CFM, MM_P2P_VIF_PS_CHANGE_IND, MM_CSA_COUNTER_IND, MM_CHANNEL_SURVEY_IND, MM_BFMER_ENABLE_REQ, MM_SET_P2P_NOA_REQ, MM_SET_P2P_OPPPS_REQ, MM_SET_P2P_NOA_CFM, MM_SET_P2P_OPPPS_CFM, MM_P2P_NOA_UPD_IND, MM_CFG_RSSI_REQ, MM_RSSI_STATUS_IND, MM_CSA_FINISH_IND, MM_CSA_TRAFFIC_IND, MM_MU_GROUP_UPDATE_REQ, MM_MU_GROUP_UPDATE_CFM, MM_ANT_DIV_INIT_REQ, MM_ANT_DIV_STOP_REQ, MM_ANT_DIV_UPDATE_REQ, MM_SWITCH_ANTENNA_REQ, MM_PKTLOSS_IND, MM_SET_MU_EDCA_REQ, MM_SET_MU_EDCA_CFM, MM_SET_UORA_REQ, MM_SET_UORA_CFM, MM_SET_TXOP_RTS_THRES_REQ, MM_SET_TXOP_RTS_THRES_CFM, MM_SET_BSS_COLOR_REQ, MM_SET_BSS_COLOR_CFM, MM_FORCE_IDLE_REQ, MM_SCAN_CHANNEL_START_IND, MM_SCAN_CHANNEL_END_IND, MM_TBTT_MOVE_REQ, MM_MAX }
| List of messages related to the task. More...
## Variables
struct ke_state_handler | mm_state_handler [MM_STATE_MAX]
| Specifies the message handler structure for every input state of STA State Machine.
struct ke_state_handler | mm_default_handler
| Specifies the message handlers that are common to all states.
ke_state_t | mm_state [MM_IDX_MAX]
| Defines the placeholder for the states of all the task instances.

## Detailed Description

MAC Management task declarations.

Copyright (C) RivieraWaves 2011-2019

Definition in file mm_task.h.