diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-03-30 17:51:54 -0700 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-05-28 18:01:35 -0700 |
commit | 44b849d11bf6801a642dd1aa9a70e470d046d273 (patch) | |
tree | 2e2e3f03f65868d94930ad4995da8db7494f33bb /drivers/net/wimax/i2400m/rx.c | |
parent | fe442683853a2c0863b700acc4328b4d73090206 (diff) | |
download | linux-stable-44b849d11bf6801a642dd1aa9a70e470d046d273.tar.gz linux-stable-44b849d11bf6801a642dd1aa9a70e470d046d273.tar.bz2 linux-stable-44b849d11bf6801a642dd1aa9a70e470d046d273.zip |
wimax/i2400m: trace commands sent from user space on the "echo" pipe
When commands are sent from user space, trace both the command sent
and the answer received over the "echo" pipe instead of over the
"trace" pipe when command tracing is enabled. As well, when the device
sends a reports/indications, send it over the "echo" pipe.
The "trace" pipe is used by the device to send firmware traces;
gets confusing. Another named pipe makes it easier to split debug
information.
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'drivers/net/wimax/i2400m/rx.c')
-rw-r--r-- | drivers/net/wimax/i2400m/rx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/rx.c b/drivers/net/wimax/i2400m/rx.c index f9fc38902322..a4adc78102fb 100644 --- a/drivers/net/wimax/i2400m/rx.c +++ b/drivers/net/wimax/i2400m/rx.c @@ -309,6 +309,9 @@ void i2400m_rx_ctl(struct i2400m *i2400m, struct sk_buff *skb_rx, skb_get(skb_rx); i2400m_queue_work(i2400m, i2400m_report_hook_work, GFP_KERNEL, &args, sizeof(args)); + if (unlikely(i2400m->trace_msg_from_user)) + wimax_msg(&i2400m->wimax_dev, "echo", + l3l4_hdr, size, GFP_KERNEL); result = wimax_msg(&i2400m->wimax_dev, NULL, l3l4_hdr, size, GFP_KERNEL); if (result < 0) |