summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2019-09-27 11:51:45 +0900
committerKalle Valo <kvalo@codeaurora.org>2019-10-01 14:48:51 +0300
commite01fddc19d215f6ad397894ec2a851d99bf154e2 (patch)
treec9d312e0bb91cda7e7d1c15f7c340820d6f1c199 /drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
parent80e84f36412e0c5172447b6947068dca0d04ee82 (diff)
downloadlinux-e01fddc19d215f6ad397894ec2a851d99bf154e2.tar.gz
ath9k_htc: Modify byte order for an error message
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index 4e8e80ac8341..aba0d454c381 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
@@ -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;
}