📄 wlan_mac_smac_nav_rpm_3mar06_ver1.diagnostic block
字号:
int i_cnt;
WlanT_Hld_List_Elem* hld_ptr;
/* Print information about this process. */
if (wlan_trace_active == OPC_TRUE)
{
printf ("Current state name:%s\t", current_state_name);
}
printf ("Station MAC Address: %d\n\n", my_address);
printf ("Total buffer usage: " OPC_PACKET_SIZE_FMT "/%d bits.\n\n", total_hlpk_size, hld_max_size);
/* Print the contents of the DCF queue. */
printf ("Printing the higher layer DCF queue contents (packet ids):\n");
for (i_cnt = 0; i_cnt < op_prg_list_size (hld_list_ptr);)
{
hld_ptr = (WlanT_Hld_List_Elem*) op_prg_list_access (hld_list_ptr, i_cnt);
printf ("" OPC_PACKET_ID_FMT "\t", op_pk_id (hld_ptr->pkptr));
if ((++i_cnt % 4) == 0)
printf ("\n");
}
printf ("\n");
/* Print the contents of the PCF queue if */
/* we are a PCF-enabled access point. */
if (active_pc)
{
printf ("Printing the higher layer PCF queue contents (packet ids):\n");
for (i_cnt = 0; i_cnt < op_prg_list_size (cfpd_list_ptr);)
{
hld_ptr = (WlanT_Hld_List_Elem*) op_prg_list_access (cfpd_list_ptr, i_cnt);
printf ("" OPC_PACKET_ID_FMT "\t", op_pk_id (hld_ptr->pkptr));
if ((++i_cnt % 4) == 0)
printf ("\n");
}
printf ("\n");
}
/* Display the current values of various */
/* flags used by the MAC model. */
printf ("\nPrinting the values of some MAC model flags:\n");
printf ("--------------------------------------------\n");
printf ("receiver_busy : %d\n", wlan_flags->receiver_busy);
printf ("rts_sent : %d\n", wlan_flags->rts_sent);
printf ("tx_beacon : %d\n", wlan_flags->tx_beacon);
printf ("polled : %d\n", wlan_flags->polled);
printf ("rcvd_bad_packet : %d\n", wlan_flags->rcvd_bad_packet);
printf ("collided_packet : %d\n", wlan_flags->collided_packet);
printf ("non_erp_present : %d\n", wlan_flags->non_erp_present);
printf ("cts_to_self : %d\n", wlan_flags->cts_to_self);
printf ("\nPrinting the values of some MAC model state variables:\n");
printf ("------------------------------------------------------\n");
printf ("slot_time: %.1f usec\n", slot_time * 1000000.0);
printf ("SIFS : %.1f usec\n", sifs_time * 1000000.0);
printf ("PIFS : %.1f usec\n", pifs_time * 1000000.0);
printf ("DIFS : %.1f usec\n", difs_time * 1000000.0);
printf ("EIFS : %.1f usec\n", eifs_time * 1000000.0);
printf ("CWmin : %d\n\n", cw_min);
printf ("last_frametx_type : %d\n", last_frametx_type);
printf ("expected_frame_type: %d\n", expected_frame_type);
printf ("destination : %d\n", destination_addr);
printf ("rcv_idle_time : %.8f\n", rcv_idle_time);
printf ("nav_duration : %.8f\n", nav_duration);
printf ("retry_count : %d\n", short_retry_count + long_retry_count);
printf ("pcf_retry_count : %d\n", pcf_retry_count);
printf ("poll index : %d\n", poll_index);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -