📄 gpr_wlan_mac.pr.c
字号:
Stathandle channel_reserv_handle;
Stathandle retrans_handle;
Stathandle throughput_handle;
int long_retry_limit;
int short_retry_limit;
int retry_limit;
WlanT_Mac_Frame_Type last_frametx_type;
Evhandle deference_evh;
Evhandle backoff_elapsed_evh;
Evhandle frame_timeout_evh;
double eifs_time;
int i_strm;
Boolean wlan_trace_active;
SimT_Pk_Id pkt_in_service;
Stathandle bits_load_handle;
int ap_flag;
Boolean bss_flag;
int ap_mac_address;
int hld_max_size;
double max_receive_lifetime;
int accept_large_packets;
WlanT_Phy_Char_Code phy_char_flag;
OpT_Packet_Size total_hlpk_size;
Stathandle drop_packet_handle;
Stathandle drop_packet_handle_inbits;
Log_Handle drop_pkt_log_handle;
Log_Handle config_log_handle;
int drop_pkt_entry_log_flag;
int packet_size;
double receive_time;
Ici* llc_iciptr;
double rx_power_threshold;
int bss_id;
int pcf_retry_count;
int poll_fail_count;
int max_poll_fails;
List* cfpd_list_ptr;
int pcf_queue_offset;
double beacon_int;
Sbhandle pcf_frag_buffer_ptr;
Packet * wlan_pcf_transmit_frame_copy_ptr;
int pcf_num_fragments;
OpT_Packet_Size pcf_remainder_size;
int* polling_list;
int poll_list_size;
int poll_index;
double pifs_time;
Evhandle beacon_evh;
Evhandle cfp_end_evh;
SimT_Pk_Id pcf_pkt_in_service;
int pcf_flag;
Boolean active_pc;
int cfp_prd;
int cfp_offset;
double cfp_length;
Boolean ap_relay;
OpT_Packet_Size total_cfpd_size;
OpT_Packet_Size packet_size_dcf;
OpT_Packet_Size packet_size_pcf;
double receive_time_dcf;
double receive_time_pcf;
Boolean cfp_ap_medium_control;
int pcf_network;
int beacon_eff_mode;
int channel_num;
int eval_bss_id;
WlanT_Roam_State_Info* roam_state_ptr;
WlanT_Rx_State_Info* rx_state_info_ptr;
double ap_connectivity_check_interval;
double ap_connectivity_check_time;
Evhandle ap_connectivity_check_evhndl;
WlanT_AP_Position_Info* conn_ap_pos_info_ptr;
WlanT_Sta_Mapping_Info* my_sta_info_ptr;
WlanT_Bss_Mapping_Info* my_bss_info_ptr;
PrgT_Mutex* mapping_info_mutex;
} gpr_wlan_mac_state;
#define pr_state_ptr ((gpr_wlan_mac_state*) (OP_SIM_CONTEXT_PTR->mod_state_ptr))
#define retry_count pr_state_ptr->retry_count
#define intrpt_type pr_state_ptr->intrpt_type
#define intrpt_code pr_state_ptr->intrpt_code
#define my_address pr_state_ptr->my_address
#define my_objid pr_state_ptr->my_objid
#define my_node_objid pr_state_ptr->my_node_objid
#define my_subnet_objid pr_state_ptr->my_subnet_objid
#define tx_objid pr_state_ptr->tx_objid
#define txch_objid pr_state_ptr->txch_objid
#define rx_objid pr_state_ptr->rx_objid
#define rxch_objid pr_state_ptr->rxch_objid
#define own_process_record_handle pr_state_ptr->own_process_record_handle
#define hld_list_ptr pr_state_ptr->hld_list_ptr
#define operational_speed pr_state_ptr->operational_speed
#define frag_threshold pr_state_ptr->frag_threshold
#define packet_seq_number pr_state_ptr->packet_seq_number
#define packet_frag_number pr_state_ptr->packet_frag_number
#define destination_addr pr_state_ptr->destination_addr
#define fragmentation_buffer_ptr pr_state_ptr->fragmentation_buffer_ptr
#define common_rsmbuf_ptr pr_state_ptr->common_rsmbuf_ptr
#define fresp_to_send pr_state_ptr->fresp_to_send
#define nav_duration pr_state_ptr->nav_duration
#define rts_threshold pr_state_ptr->rts_threshold
#define duplicate_entry pr_state_ptr->duplicate_entry
#define expected_frame_type pr_state_ptr->expected_frame_type
#define remote_sta_addr pr_state_ptr->remote_sta_addr
#define backoff_slots pr_state_ptr->backoff_slots
#define packet_load_handle pr_state_ptr->packet_load_handle
#define intrpt_time pr_state_ptr->intrpt_time
#define wlan_transmit_frame_copy_ptr pr_state_ptr->wlan_transmit_frame_copy_ptr
#define backoff_slots_handle pr_state_ptr->backoff_slots_handle
#define instrm_from_mac_if pr_state_ptr->instrm_from_mac_if
#define outstrm_to_mac_if pr_state_ptr->outstrm_to_mac_if
#define num_fragments pr_state_ptr->num_fragments
#define remainder_size pr_state_ptr->remainder_size
#define defragmentation_list_ptr pr_state_ptr->defragmentation_list_ptr
#define wlan_flags pr_state_ptr->wlan_flags
#define oms_aa_handle pr_state_ptr->oms_aa_handle
#define current_time pr_state_ptr->current_time
#define rcv_idle_time pr_state_ptr->rcv_idle_time
#define hld_pmh pr_state_ptr->hld_pmh
#define max_backoff pr_state_ptr->max_backoff
#define current_state_name pr_state_ptr->current_state_name
#define hl_packets_rcvd pr_state_ptr->hl_packets_rcvd
#define media_access_delay pr_state_ptr->media_access_delay
#define ete_delay_handle pr_state_ptr->ete_delay_handle
#define global_ete_delay_handle pr_state_ptr->global_ete_delay_handle
#define global_throughput_handle pr_state_ptr->global_throughput_handle
#define global_load_handle pr_state_ptr->global_load_handle
#define global_dropped_data_handle pr_state_ptr->global_dropped_data_handle
#define global_mac_delay_handle pr_state_ptr->global_mac_delay_handle
#define ctrl_traffic_rcvd_handle_inbits pr_state_ptr->ctrl_traffic_rcvd_handle_inbits
#define ctrl_traffic_sent_handle_inbits pr_state_ptr->ctrl_traffic_sent_handle_inbits
#define ctrl_traffic_rcvd_handle pr_state_ptr->ctrl_traffic_rcvd_handle
#define ctrl_traffic_sent_handle pr_state_ptr->ctrl_traffic_sent_handle
#define data_traffic_rcvd_handle_inbits pr_state_ptr->data_traffic_rcvd_handle_inbits
#define data_traffic_sent_handle_inbits pr_state_ptr->data_traffic_sent_handle_inbits
#define data_traffic_rcvd_handle pr_state_ptr->data_traffic_rcvd_handle
#define data_traffic_sent_handle pr_state_ptr->data_traffic_sent_handle
#define sifs_time pr_state_ptr->sifs_time
#define slot_time pr_state_ptr->slot_time
#define cw_min pr_state_ptr->cw_min
#define cw_max pr_state_ptr->cw_max
#define difs_time pr_state_ptr->difs_time
#define plcp_overhead_control pr_state_ptr->plcp_overhead_control
#define plcp_overhead_data pr_state_ptr->plcp_overhead_data
#define channel_reserv_handle pr_state_ptr->channel_reserv_handle
#define retrans_handle pr_state_ptr->retrans_handle
#define throughput_handle pr_state_ptr->throughput_handle
#define long_retry_limit pr_state_ptr->long_retry_limit
#define short_retry_limit pr_state_ptr->short_retry_limit
#define retry_limit pr_state_ptr->retry_limit
#define last_frametx_type pr_state_ptr->last_frametx_type
#define deference_evh pr_state_ptr->deference_evh
#define backoff_elapsed_evh pr_state_ptr->backoff_elapsed_evh
#define frame_timeout_evh pr_state_ptr->frame_timeout_evh
#define eifs_time pr_state_ptr->eifs_time
#define i_strm pr_state_ptr->i_strm
#define wlan_trace_active pr_state_ptr->wlan_trace_active
#define pkt_in_service pr_state_ptr->pkt_in_service
#define bits_load_handle pr_state_ptr->bits_load_handle
#define ap_flag pr_state_ptr->ap_flag
#define bss_flag pr_state_ptr->bss_flag
#define ap_mac_address pr_state_ptr->ap_mac_address
#define hld_max_size pr_state_ptr->hld_max_size
#define max_receive_lifetime pr_state_ptr->max_receive_lifetime
#define accept_large_packets pr_state_ptr->accept_large_packets
#define phy_char_flag pr_state_ptr->phy_char_flag
#define total_hlpk_size pr_state_ptr->total_hlpk_size
#define drop_packet_handle pr_state_ptr->drop_packet_handle
#define drop_packet_handle_inbits pr_state_ptr->drop_packet_handle_inbits
#define drop_pkt_log_handle pr_state_ptr->drop_pkt_log_handle
#define config_log_handle pr_state_ptr->config_log_handle
#define drop_pkt_entry_log_flag pr_state_ptr->drop_pkt_entry_log_flag
#define packet_size pr_state_ptr->packet_size
#define receive_time pr_state_ptr->receive_time
#define llc_iciptr pr_state_ptr->llc_iciptr
#define rx_power_threshold pr_state_ptr->rx_power_threshold
#define bss_id pr_state_ptr->bss_id
#define pcf_retry_count pr_state_ptr->pcf_retry_count
#define poll_fail_count pr_state_ptr->poll_fail_count
#define max_poll_fails pr_state_ptr->max_poll_fails
#define cfpd_list_ptr pr_state_ptr->cfpd_list_ptr
#define pcf_queue_offset pr_state_ptr->pcf_queue_offset
#define beacon_int pr_state_ptr->beacon_int
#define pcf_frag_buffer_ptr pr_state_ptr->pcf_frag_buffer_ptr
#define wlan_pcf_transmit_frame_copy_ptr pr_state_ptr->wlan_pcf_transmit_frame_copy_ptr
#define pcf_num_fragments pr_state_ptr->pcf_num_fragments
#define pcf_remainder_size pr_state_ptr->pcf_remainder_size
#define polling_list pr_state_ptr->polling_list
#define poll_list_size pr_state_ptr->poll_list_size
#define poll_index pr_state_ptr->poll_index
#define pifs_time pr_state_ptr->pifs_time
#define beacon_evh pr_state_ptr->beacon_evh
#define cfp_end_evh pr_state_ptr->cfp_end_evh
#define pcf_pkt_in_service pr_state_ptr->pcf_pkt_in_service
#define pcf_flag pr_state_ptr->pcf_flag
#define active_pc pr_state_ptr->active_pc
#define cfp_prd pr_state_ptr->cfp_prd
#define cfp_offset pr_state_ptr->cfp_offset
#define cfp_length pr_state_ptr->cfp_length
#define ap_relay pr_state_ptr->ap_relay
#define total_cfpd_size pr_state_ptr->total_cfpd_size
#define packet_size_dcf pr_state_ptr->packet_size_dcf
#define packet_size_pcf pr_state_ptr->packet_size_pcf
#define receive_time_dcf pr_state_ptr->receive_time_dcf
#define receive_time_pcf pr_state_ptr->receive_time_pcf
#define cfp_ap_medium_control pr_state_ptr->cfp_ap_medium_control
#define pcf_network pr_state_ptr->pcf_network
#define beacon_eff_mode pr_state_ptr->beacon_eff_mode
#define channel_num pr_state_ptr->channel_num
#define eval_bss_id pr_state_ptr->eval_bss_id
#define roam_state_ptr pr_state_ptr->roam_state_ptr
#define rx_state_info_ptr pr_state_ptr->rx_state_info_ptr
#define ap_connectivity_check_interval pr_state_ptr->ap_connectivity_check_interval
#define ap_connectivity_check_time pr_state_ptr->ap_connectivity_check_time
#define ap_connectivity_check_evhndl pr_state_ptr->ap_connectivity_check_evhndl
#define conn_ap_pos_info_ptr pr_state_ptr->conn_ap_pos_info_ptr
#define my_sta_info_ptr pr_state_ptr->my_sta_info_ptr
#define my_bss_info_ptr pr_state_ptr->my_bss_info_ptr
#define mapping_info_mutex pr_state_ptr->mapping_info_mutex
/* These macro definitions will define a local variable called */
/* "op_sv_ptr" in each function containing a FIN statement. */
/* This variable points to the state variable data structure, */
/* and can be used from a C debugger to display their values. */
#undef FIN_PREAMBLE_DEC
#undef FIN_PREAMBLE_CODE
#if defined (OPD_PARALLEL)
# define FIN_PREAMBLE_DEC gpr_wlan_mac_state *op_sv_ptr; OpT_Sim_Context * tcontext_ptr;
# define FIN_PREAMBLE_CODE \
if (VosS_Mt_Perform_Lock) \
VOS_THREAD_SPECIFIC_DATA_GET (VosI_Globals.simi_mt_context_data_key, tcontext_ptr, SimT_Context *); \
else \
tcontext_ptr = VosI_Globals.simi_sequential_context_ptr; \
op_sv_ptr = ((gpr_wlan_mac_state *)(tcontext_ptr->mod_state_ptr));
#else
# define FIN_PREAMBLE_DEC gpr_wlan_mac_state *op_sv_ptr;
# define FIN_PREAMBLE_CODE op_sv_ptr = pr_state_ptr;
#endif
/* Function Block */
#if !defined (VOSD_NO_FIN)
enum { _op_block_origin = __LINE__ };
#endif
static void
wlan_mac_sv_init ()
{
Objid mac_params_comp_attr_objid;
Objid params_attr_objid;
Objid pcf_params_comp_attr_objid;
Objid subpcf_params_attr_objid;
Objid chann_objid;
int num_chann;
double tx_power;
int i;
Objid statwire_objid;
int num_statwires;
double threshold;
void* temp_ptr;
char mutex_name_str [64];
int roaming_cap_flag;
/** 1. Initialize state variables. **/
/** 2. Read model attribute values in variables. **/
/** 3. Create global lists **/
/** 4. Register statistics handlers **/
FIN (wlan_mac_sv_init ());
/* object id of the surrounding processor. */
my_objid = op_id_self ();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -