diff options
author | Ben Greear <greearb@candelatech.com> | 2014-11-04 18:22:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-17 15:32:13 -0500 |
commit | 325e188176681bdce0584154075e02c373794749 (patch) | |
tree | 22dace21b33b05d5a37a17cf74024897693a1e24 | |
parent | 9b5186b4be26d1fb8d63a3001b2e6ff0b2e2f82f (diff) |
ath9k: fix misc debugfs when not using chan context
When channel-context is not enabled, all vifs belong to
the first context, but it is not configured as 'assigned'.
Fix misc debugfs file to print out info for non-assigned
contexts, and also print whether ctx is assigned or not.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index db388405bf0c..3f21b1bbc52e 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -828,13 +828,14 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf, | |||
828 | 828 | ||
829 | i = 0; | 829 | i = 0; |
830 | ath_for_each_chanctx(sc, ctx) { | 830 | ath_for_each_chanctx(sc, ctx) { |
831 | if (!ctx->assigned || list_empty(&ctx->vifs)) | 831 | if (list_empty(&ctx->vifs)) |
832 | continue; | 832 | continue; |
833 | ath9k_calculate_iter_data(sc, ctx, &iter_data); | 833 | ath9k_calculate_iter_data(sc, ctx, &iter_data); |
834 | 834 | ||
835 | len += scnprintf(buf + len, sizeof(buf) - len, | 835 | len += scnprintf(buf + len, sizeof(buf) - len, |
836 | "VIF-COUNTS: CTX %i AP: %i STA: %i MESH: %i WDS: %i", | 836 | "VIFS: CTX %i(%i) AP: %i STA: %i MESH: %i WDS: %i", |
837 | i++, iter_data.naps, iter_data.nstations, | 837 | i++, (int)(ctx->assigned), iter_data.naps, |
838 | iter_data.nstations, | ||
838 | iter_data.nmeshes, iter_data.nwds); | 839 | iter_data.nmeshes, iter_data.nwds); |
839 | len += scnprintf(buf + len, sizeof(buf) - len, | 840 | len += scnprintf(buf + len, sizeof(buf) - len, |
840 | " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n", | 841 | " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n", |