19 #include <linux/module.h>
22 #include <linux/wireless.h>
23 #include <linux/netdevice.h>
24 #include <linux/rtnetlink.h>
29 static void wireless_seq_printf_stats(
struct seq_file *seq,
38 #ifdef CONFIG_WIRELESS_EXT
39 if (dev->wireless_handlers)
42 #ifdef CONFIG_CFG80211
49 seq_printf(seq,
"%6s: %04x %3d%c %3d%c %3d%c %6d %6d %6d "
66 if (stats != &nullstats)
75 static int wireless_dev_seq_show(
struct seq_file *seq,
void *
v)
80 seq_printf(seq,
"Inter-| sta-| Quality | Discarded "
81 "packets | Missed | WE\n"
82 " face | tus | link level noise | nwid "
83 "crypt frag retry misc | beacon | %d\n",
86 wireless_seq_printf_stats(seq, v);
90 static void *wireless_dev_seq_start(
struct seq_file *seq, loff_t *
pos)
92 struct net *
net = seq_file_net(seq);
107 static
void *wireless_dev_seq_next(
struct seq_file *seq,
void *v, loff_t *pos)
109 struct net *net = seq_file_net(seq);
114 first_net_device(net) : next_net_device(v);
117 static void wireless_dev_seq_stop(
struct seq_file *seq,
void *v)
123 .start = wireless_dev_seq_start,
124 .next = wireless_dev_seq_next,
125 .stop = wireless_dev_seq_stop,
126 .show = wireless_dev_seq_show,
137 .open = seq_open_wireless,