From: Felix Fietkau Date: Mon, 24 Jan 2011 20:29:25 +0000 (+0100) Subject: ath9k: fix tx queue index confusion in debugfs code X-Git-Tag: v2.6.39-rc1~468^2~417^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bec3e5ade813ee4bdbab03af1bb6f85859272ea;p=pandora-kernel.git ath9k: fix tx queue index confusion in debugfs code Various places printing tx queue information used various different ways to get a tx queue index for printing statistics. Most of these ways were wrong. ATH_TXQ_AC_* cannot be used as an index for sc->tx.txq, because it is only used internally for queue assignment. One place used WME_AC_* as a queue index for sc->debug.stats.txstats, however this array uses the ath9k_hw queue number as well. Fix all of this by always using the ath9k_hw queue number as an index, and always looking it up by going through sc->tx.txq_map. Signed-off-by: Felix Fietkau Cc: Ben Greear Signed-off-by: John W. Linville --- Reading git-diff-tree failed