ath9k_htc: Modify byte order for an error message
authorMasashi Honma <masashi.honma@gmail.com>
Fri, 27 Sep 2019 02:51:45 +0000 (11:51 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 09:17:59 +0000 (10:17 +0100)
[ Upstream commit e01fddc19d215f6ad397894ec2a851d99bf154e2 ]

rs_datalen is be16 so we need to convert it before printing.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

index b38a586ea59ad33c74255590a0f18bf807590e41..d913b9e9bd8f7bd969f9a3997eb5c0dc6f7157ed 100644 (file)
@@ -986,7 +986,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
            (skb->len - HTC_RX_FRAME_HEADER_SIZE) != 0) {
                ath_err(common,
                        "Corrupted RX data len, dropping (dlen: %d, skblen: %d)\n",
-                       rxstatus->rs_datalen, skb->len);
+                       be16_to_cpu(rxstatus->rs_datalen), skb->len);
                goto rx_next;
        }