Fix endian conversion when reading num_pls field from i2400m_msg_hdr for updating tx_pl_num statistic. Signed-off-by: Doug Kehn <rdkehn at yahoo.com> --- drivers/net/wimax/i2400m/tx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wimax/i2400m/tx.c b/drivers/net/wimax/i2400m/tx.c index 3f819ef..140492a 100644 --- a/drivers/net/wimax/i2400m/tx.c +++ b/drivers/net/wimax/i2400m/tx.c @@ -895,7 +895,7 @@ skip: tx_msg_moved->barker = le32_to_cpu(I2400M_H2D_PREVIEW_BARKER); tx_msg_moved->sequence = le32_to_cpu(i2400m->tx_sequence++); - pls = le32_to_cpu(tx_msg_moved->num_pls); + pls = le16_to_cpu(tx_msg_moved->num_pls); i2400m->tx_pl_num += pls; /* Update stats */ if (pls > i2400m->tx_pl_max) i2400m->tx_pl_max = pls; -- 1.7.1