mwl8k: missing endian conversion when printing firmware command result
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 24 Aug 2009 13:42:56 +0000 (15:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:42 +0000 (14:40 -0400)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index a4336f4..6e017db 100644 (file)
@@ -1474,7 +1474,7 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
                        printk(KERN_ERR "%s: Command %s error 0x%x\n",
                               priv->name,
                               mwl8k_cmd_name(cmd->code, buf, sizeof(buf)),
-                              cmd->result);
+                              le16_to_cpu(cmd->result));
        }
 
        return rc;