diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:31:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:56:06 -0500 |
commit | 8d44f2bd7554734913f1256e4f45c35454167161 (patch) | |
tree | 4c15efc78e339696c257e8b16107021307687287 /drivers/net/wireless/iwlegacy/debug.c | |
parent | 8c9c48d5a9ca5e1426372f8a747846bd0609dc08 (diff) |
iwlegacy: move qos_data out of ctx structure
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/debug.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/debug.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlegacy/debug.c b/drivers/net/wireless/iwlegacy/debug.c index f3cb45e53c05..3a9609a88748 100644 --- a/drivers/net/wireless/iwlegacy/debug.c +++ b/drivers/net/wireless/iwlegacy/debug.c | |||
@@ -644,7 +644,6 @@ il_dbgfs_qos_read(struct file *file, char __user *user_buf, size_t count, | |||
644 | loff_t *ppos) | 644 | loff_t *ppos) |
645 | { | 645 | { |
646 | struct il_priv *il = file->private_data; | 646 | struct il_priv *il = file->private_data; |
647 | struct il_rxon_context *ctx = &il->ctx; | ||
648 | int pos = 0, i; | 647 | int pos = 0, i; |
649 | char buf[256]; | 648 | char buf[256]; |
650 | const size_t bufsz = sizeof(buf); | 649 | const size_t bufsz = sizeof(buf); |
@@ -656,10 +655,10 @@ il_dbgfs_qos_read(struct file *file, char __user *user_buf, size_t count, | |||
656 | pos += | 655 | pos += |
657 | scnprintf(buf + pos, bufsz - pos, | 656 | scnprintf(buf + pos, bufsz - pos, |
658 | "AC[%d]\t%u\t%u\t%u\t%u\n", i, | 657 | "AC[%d]\t%u\t%u\t%u\t%u\n", i, |
659 | ctx->qos_data.def_qos_parm.ac[i].cw_min, | 658 | il->qos_data.def_qos_parm.ac[i].cw_min, |
660 | ctx->qos_data.def_qos_parm.ac[i].cw_max, | 659 | il->qos_data.def_qos_parm.ac[i].cw_max, |
661 | ctx->qos_data.def_qos_parm.ac[i].aifsn, | 660 | il->qos_data.def_qos_parm.ac[i].aifsn, |
662 | ctx->qos_data.def_qos_parm.ac[i].edca_txop); | 661 | il->qos_data.def_qos_parm.ac[i].edca_txop); |
663 | } | 662 | } |
664 | 663 | ||
665 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); | 664 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); |