Message ID | 20190927025146.2888-1-masashi.honma@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e01fddc19d215f6ad397894ec2a851d99bf154e2 |
Delegated to: | Kalle Valo |
Headers | show |
Series | [1/2] ath9k_htc: Modify byte order for an error message | expand |
Masashi Honma <masashi.honma@gmail.com> wrote: > 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> 2 patches applied to ath-next branch of ath.git, thanks. e01fddc19d21 ath9k_htc: Modify byte order for an error message cd486e627e67 ath9k_htc: Discard undersized packets
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; }
Signed-off-by: Masashi Honma <masashi.honma@gmail.com> --- drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)