33 il3945_stats_flag(
struct il_priv *il,
char *
buf,
int bufsz)
37 p +=
scnprintf(buf + p, bufsz - p,
"Statistics Flag(0x%X):\n",
41 "\tStatistics have been cleared\n");
42 p +=
scnprintf(buf + p, bufsz - p,
"\tOperational Frequency: %s\n",
45 p +=
scnprintf(buf + p, bufsz - p,
"\tTGj Narrow Band: %s\n",
53 size_t count, loff_t *ppos)
72 IL_ERR(
"Can not allocate Buffer\n");
81 ofdm = &il->_3945.stats.rx.ofdm;
82 cck = &il->_3945.stats.rx.cck;
83 general = &il->_3945.stats.rx.general;
84 accum_ofdm = &il->_3945.accum_stats.rx.ofdm;
85 accum_cck = &il->_3945.accum_stats.rx.cck;
86 accum_general = &il->_3945.accum_stats.rx.general;
87 delta_ofdm = &il->_3945.delta_stats.rx.ofdm;
88 delta_cck = &il->_3945.delta_stats.rx.cck;
89 delta_general = &il->_3945.delta_stats.rx.general;
90 max_ofdm = &il->_3945.max_delta.rx.ofdm;
91 max_cck = &il->_3945.max_delta.rx.cck;
92 max_general = &il->_3945.max_delta.rx.general;
94 pos += il3945_stats_flag(il, buf, bufsz);
98 "acumulative delta max\n",
99 "Statistics_Rx - OFDM:");
102 " %-30s %10u %10u %10u %10u\n",
"ina_cnt:",
107 " %-30s %10u %10u %10u %10u\n",
"fina_cnt:",
112 " %-30s %10u %10u %10u %10u\n",
"plcp_err:",
117 " %-30s %10u %10u %10u %10u\n",
"crc32_err:",
122 " %-30s %10u %10u %10u %10u\n",
"overrun_err:",
127 " %-30s %10u %10u %10u %10u\n",
"early_overrun_err:",
134 " %-30s %10u %10u %10u %10u\n",
"crc32_good:",
139 " %-30s %10u %10u %10u %10u\n",
"false_alarm_cnt:",
145 " %-30s %10u %10u %10u %10u\n",
"fina_sync_err_cnt:",
152 " %-30s %10u %10u %10u %10u\n",
"sfd_timeout:",
157 " %-30s %10u %10u %10u %10u\n",
"fina_timeout:",
162 " %-30s %10u %10u %10u %10u\n",
"unresponded_rts:",
168 " %-30s %10u %10u %10u %10u\n",
169 "rxe_frame_lmt_ovrun:",
176 " %-30s %10u %10u %10u %10u\n",
"sent_ack_cnt:",
181 " %-30s %10u %10u %10u %10u\n",
"sent_cts_cnt:",
188 "acumulative delta max\n",
189 "Statistics_Rx - CCK:");
192 " %-30s %10u %10u %10u %10u\n",
"ina_cnt:",
197 " %-30s %10u %10u %10u %10u\n",
"fina_cnt:",
202 " %-30s %10u %10u %10u %10u\n",
"plcp_err:",
207 " %-30s %10u %10u %10u %10u\n",
"crc32_err:",
212 " %-30s %10u %10u %10u %10u\n",
"overrun_err:",
217 " %-30s %10u %10u %10u %10u\n",
"early_overrun_err:",
223 " %-30s %10u %10u %10u %10u\n",
"crc32_good:",
228 " %-30s %10u %10u %10u %10u\n",
"false_alarm_cnt:",
234 " %-30s %10u %10u %10u %10u\n",
"fina_sync_err_cnt:",
240 " %-30s %10u %10u %10u %10u\n",
"sfd_timeout:",
245 " %-30s %10u %10u %10u %10u\n",
"fina_timeout:",
250 " %-30s %10u %10u %10u %10u\n",
"unresponded_rts:",
256 " %-30s %10u %10u %10u %10u\n",
257 "rxe_frame_lmt_ovrun:",
264 " %-30s %10u %10u %10u %10u\n",
"sent_ack_cnt:",
269 " %-30s %10u %10u %10u %10u\n",
"sent_cts_cnt:",
276 "acumulative delta max\n",
277 "Statistics_Rx - GENERAL:");
280 " %-30s %10u %10u %10u %10u\n",
"bogus_cts:",
285 " %-30s %10u %10u %10u %10u\n",
"bogus_ack:",
290 " %-30s %10u %10u %10u %10u\n",
"non_bssid_frames:",
297 " %-30s %10u %10u %10u %10u\n",
"filtered_frames:",
304 " %-30s %10u %10u %10u %10u\n",
305 "non_channel_beacons:",
318 size_t count, loff_t *ppos)
327 if (!il_is_alive(il))
332 IL_ERR(
"Can not allocate Buffer\n");
341 tx = &il->_3945.stats.tx;
342 accum_tx = &il->_3945.accum_stats.tx;
343 delta_tx = &il->_3945.delta_stats.tx;
344 max_tx = &il->_3945.max_delta.tx;
345 pos += il3945_stats_flag(il, buf, bufsz);
349 "acumulative delta max\n",
353 " %-30s %10u %10u %10u %10u\n",
"preamble:",
358 " %-30s %10u %10u %10u %10u\n",
"rx_detected_cnt:",
364 " %-30s %10u %10u %10u %10u\n",
"bt_prio_defer_cnt:",
370 " %-30s %10u %10u %10u %10u\n",
"bt_prio_kill_cnt:",
376 " %-30s %10u %10u %10u %10u\n",
"few_bytes_cnt:",
381 " %-30s %10u %10u %10u %10u\n",
"cts_timeout:",
386 " %-30s %10u %10u %10u %10u\n",
"ack_timeout:",
391 " %-30s %10u %10u %10u %10u\n",
"expected_ack_cnt:",
397 " %-30s %10u %10u %10u %10u\n",
"actual_ack_cnt:",
408 size_t count, loff_t *ppos)
417 struct stats_dbg *
dbg, *accum_dbg, *delta_dbg, *max_dbg;
420 if (!il_is_alive(il))
425 IL_ERR(
"Can not allocate Buffer\n");
434 general = &il->_3945.stats.general;
435 dbg = &il->_3945.stats.general.dbg;
436 div = &il->_3945.stats.general.div;
437 accum_general = &il->_3945.accum_stats.general;
438 delta_general = &il->_3945.delta_stats.general;
439 max_general = &il->_3945.max_delta.general;
440 accum_dbg = &il->_3945.accum_stats.general.dbg;
441 delta_dbg = &il->_3945.delta_stats.general.dbg;
442 max_dbg = &il->_3945.max_delta.general.dbg;
443 accum_div = &il->_3945.accum_stats.general.div;
444 delta_div = &il->_3945.delta_stats.general.div;
445 max_div = &il->_3945.max_delta.general.div;
446 pos += il3945_stats_flag(il, buf, bufsz);
450 "acumulative delta max\n",
451 "Statistics_General:");
454 " %-30s %10u %10u %10u %10u\n",
"burst_check:",
459 " %-30s %10u %10u %10u %10u\n",
"burst_count:",
464 " %-30s %10u %10u %10u %10u\n",
"sleep_time:",
470 " %-30s %10u %10u %10u %10u\n",
"slots_out:",
475 " %-30s %10u %10u %10u %10u\n",
"slots_idle:",
480 scnprintf(buf + pos, bufsz - pos,
"ttl_timestamp:\t\t\t%u\n",
484 " %-30s %10u %10u %10u %10u\n",
"tx_on_a:",
489 " %-30s %10u %10u %10u %10u\n",
"tx_on_b:",
494 " %-30s %10u %10u %10u %10u\n",
"exec_time:",
499 " %-30s %10u %10u %10u %10u\n",
"probe_time:",