ath6kl: Fix firmware crash dump
authorNaveen Gangadharan <ngangadh@qca.qualcomm.com>
Wed, 8 Feb 2012 06:53:32 +0000 (22:53 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 8 Feb 2012 09:44:41 +0000 (11:44 +0200)
The firmware crash dump printout was wrong as it was using incorrect
offsets.

kvalo: improve commit log, change the "%d:" to print word indexes, not bytes

Signed-off-by: Naveen Gangadharan <ngangadh@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/hif.c

index 18c7f64533132f0319c6142be0a376f1493376c1..ef650b61740a61f4089ea08292c5547393c871ae 100644 (file)
@@ -107,9 +107,9 @@ static void ath6kl_hif_dump_fw_crash(struct ath6kl *ar)
 
        BUILD_BUG_ON(REG_DUMP_COUNT_AR6003 % 4);
 
-       for (i = 0; i < REG_DUMP_COUNT_AR6003 / 4; i++) {
+       for (i = 0; i < REG_DUMP_COUNT_AR6003; i += 4) {
                ath6kl_info("%d: 0x%8.8x 0x%8.8x 0x%8.8x 0x%8.8x\n",
-                           4 * i,
+                           i,
                            le32_to_cpu(regdump_val[i]),
                            le32_to_cpu(regdump_val[i + 1]),
                            le32_to_cpu(regdump_val[i + 2]),