diff options
author | Jiri Benc <jbenc@suse.cz> | 2007-05-05 14:46:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-05 14:46:38 -0400 |
commit | e9f207f0ff90bf60b825800d7450e6f2ff2eab88 (patch) | |
tree | 22bd39116f2cae8d4ce6169eb91e4b9a7204770f /net/mac80211/ieee80211_i.h | |
parent | f0706e828e96d0fa4e80c0d25aa98523f6d589a0 (diff) |
[MAC80211]: Add debugfs attributes.
Export various mac80211 internal variables through debugfs.
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index ae94d6461798..af4d14d0b969 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -307,6 +307,65 @@ struct ieee80211_sub_if_data { | |||
307 | } u; | 307 | } u; |
308 | int channel_use; | 308 | int channel_use; |
309 | int channel_use_raw; | 309 | int channel_use_raw; |
310 | |||
311 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
312 | struct dentry *debugfsdir; | ||
313 | union { | ||
314 | struct { | ||
315 | struct dentry *channel_use; | ||
316 | struct dentry *drop_unencrypted; | ||
317 | struct dentry *eapol; | ||
318 | struct dentry *ieee8021_x; | ||
319 | struct dentry *state; | ||
320 | struct dentry *bssid; | ||
321 | struct dentry *prev_bssid; | ||
322 | struct dentry *ssid_len; | ||
323 | struct dentry *aid; | ||
324 | struct dentry *ap_capab; | ||
325 | struct dentry *capab; | ||
326 | struct dentry *extra_ie_len; | ||
327 | struct dentry *auth_tries; | ||
328 | struct dentry *assoc_tries; | ||
329 | struct dentry *auth_algs; | ||
330 | struct dentry *auth_alg; | ||
331 | struct dentry *auth_transaction; | ||
332 | struct dentry *flags; | ||
333 | } sta; | ||
334 | struct { | ||
335 | struct dentry *channel_use; | ||
336 | struct dentry *drop_unencrypted; | ||
337 | struct dentry *eapol; | ||
338 | struct dentry *ieee8021_x; | ||
339 | struct dentry *num_sta_ps; | ||
340 | struct dentry *dtim_period; | ||
341 | struct dentry *dtim_count; | ||
342 | struct dentry *num_beacons; | ||
343 | struct dentry *force_unicast_rateidx; | ||
344 | struct dentry *max_ratectrl_rateidx; | ||
345 | struct dentry *num_buffered_multicast; | ||
346 | struct dentry *beacon_head_len; | ||
347 | struct dentry *beacon_tail_len; | ||
348 | } ap; | ||
349 | struct { | ||
350 | struct dentry *channel_use; | ||
351 | struct dentry *drop_unencrypted; | ||
352 | struct dentry *eapol; | ||
353 | struct dentry *ieee8021_x; | ||
354 | struct dentry *peer; | ||
355 | } wds; | ||
356 | struct { | ||
357 | struct dentry *channel_use; | ||
358 | struct dentry *drop_unencrypted; | ||
359 | struct dentry *eapol; | ||
360 | struct dentry *ieee8021_x; | ||
361 | struct dentry *vlan_id; | ||
362 | } vlan; | ||
363 | struct { | ||
364 | struct dentry *mode; | ||
365 | } monitor; | ||
366 | struct dentry *default_key; | ||
367 | } debugfs; | ||
368 | #endif | ||
310 | }; | 369 | }; |
311 | 370 | ||
312 | #define IEEE80211_DEV_TO_SUB_IF(dev) netdev_priv(dev) | 371 | #define IEEE80211_DEV_TO_SUB_IF(dev) netdev_priv(dev) |
@@ -444,6 +503,10 @@ struct ieee80211_local { | |||
444 | u32 stat_time; | 503 | u32 stat_time; |
445 | struct timer_list stat_timer; | 504 | struct timer_list stat_timer; |
446 | 505 | ||
506 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
507 | struct work_struct sta_debugfs_add; | ||
508 | #endif | ||
509 | |||
447 | enum { | 510 | enum { |
448 | STA_ANTENNA_SEL_AUTO = 0, | 511 | STA_ANTENNA_SEL_AUTO = 0, |
449 | STA_ANTENNA_SEL_SW_CTRL = 1, | 512 | STA_ANTENNA_SEL_SW_CTRL = 1, |
@@ -500,6 +563,70 @@ struct ieee80211_local { | |||
500 | * (1 << MODE_*) */ | 563 | * (1 << MODE_*) */ |
501 | 564 | ||
502 | int user_space_mlme; | 565 | int user_space_mlme; |
566 | |||
567 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
568 | struct local_debugfsdentries { | ||
569 | struct dentry *channel; | ||
570 | struct dentry *frequency; | ||
571 | struct dentry *radar_detect; | ||
572 | struct dentry *antenna_sel_tx; | ||
573 | struct dentry *antenna_sel_rx; | ||
574 | struct dentry *bridge_packets; | ||
575 | struct dentry *key_tx_rx_threshold; | ||
576 | struct dentry *rts_threshold; | ||
577 | struct dentry *fragmentation_threshold; | ||
578 | struct dentry *short_retry_limit; | ||
579 | struct dentry *long_retry_limit; | ||
580 | struct dentry *total_ps_buffered; | ||
581 | struct dentry *mode; | ||
582 | struct dentry *wep_iv; | ||
583 | struct dentry *tx_power_reduction; | ||
584 | struct dentry *modes; | ||
585 | struct dentry *statistics; | ||
586 | struct local_debugfsdentries_statsdentries { | ||
587 | struct dentry *transmitted_fragment_count; | ||
588 | struct dentry *multicast_transmitted_frame_count; | ||
589 | struct dentry *failed_count; | ||
590 | struct dentry *retry_count; | ||
591 | struct dentry *multiple_retry_count; | ||
592 | struct dentry *frame_duplicate_count; | ||
593 | struct dentry *received_fragment_count; | ||
594 | struct dentry *multicast_received_frame_count; | ||
595 | struct dentry *transmitted_frame_count; | ||
596 | struct dentry *wep_undecryptable_count; | ||
597 | struct dentry *num_scans; | ||
598 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS | ||
599 | struct dentry *tx_handlers_drop; | ||
600 | struct dentry *tx_handlers_queued; | ||
601 | struct dentry *tx_handlers_drop_unencrypted; | ||
602 | struct dentry *tx_handlers_drop_fragment; | ||
603 | struct dentry *tx_handlers_drop_wep; | ||
604 | struct dentry *tx_handlers_drop_not_assoc; | ||
605 | struct dentry *tx_handlers_drop_unauth_port; | ||
606 | struct dentry *rx_handlers_drop; | ||
607 | struct dentry *rx_handlers_queued; | ||
608 | struct dentry *rx_handlers_drop_nullfunc; | ||
609 | struct dentry *rx_handlers_drop_defrag; | ||
610 | struct dentry *rx_handlers_drop_short; | ||
611 | struct dentry *rx_handlers_drop_passive_scan; | ||
612 | struct dentry *tx_expand_skb_head; | ||
613 | struct dentry *tx_expand_skb_head_cloned; | ||
614 | struct dentry *rx_expand_skb_head; | ||
615 | struct dentry *rx_expand_skb_head2; | ||
616 | struct dentry *rx_handlers_fragments; | ||
617 | struct dentry *tx_status_drop; | ||
618 | struct dentry *wme_tx_queue; | ||
619 | struct dentry *wme_rx_queue; | ||
620 | #endif | ||
621 | struct dentry *dot11ACKFailureCount; | ||
622 | struct dentry *dot11RTSFailureCount; | ||
623 | struct dentry *dot11FCSErrorCount; | ||
624 | struct dentry *dot11RTSSuccessCount; | ||
625 | } stats; | ||
626 | struct dentry *stations; | ||
627 | struct dentry *keys; | ||
628 | } debugfs; | ||
629 | #endif | ||
503 | }; | 630 | }; |
504 | 631 | ||
505 | static inline struct ieee80211_local *hw_to_local( | 632 | static inline struct ieee80211_local *hw_to_local( |