diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/tx.c')
-rw-r--r-- | drivers/net/wimax/i2400m/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wimax/i2400m/tx.c b/drivers/net/wimax/i2400m/tx.c index 8ef724d31fb..a635fd720f3 100644 --- a/drivers/net/wimax/i2400m/tx.c +++ b/drivers/net/wimax/i2400m/tx.c | |||
@@ -491,7 +491,7 @@ void i2400m_tx_close(struct i2400m *i2400m) | |||
491 | */ | 491 | */ |
492 | hdr_size = sizeof(*tx_msg) | 492 | hdr_size = sizeof(*tx_msg) |
493 | + le16_to_cpu(tx_msg->num_pls) * sizeof(tx_msg->pld[0]); | 493 | + le16_to_cpu(tx_msg->num_pls) * sizeof(tx_msg->pld[0]); |
494 | hdr_size = ALIGN(hdr_size, I2400M_PL_PAD); | 494 | hdr_size = ALIGN(hdr_size, I2400M_PL_ALIGN); |
495 | tx_msg->offset = I2400M_TX_PLD_SIZE - hdr_size; | 495 | tx_msg->offset = I2400M_TX_PLD_SIZE - hdr_size; |
496 | tx_msg_moved = (void *) tx_msg + tx_msg->offset; | 496 | tx_msg_moved = (void *) tx_msg + tx_msg->offset; |
497 | memmove(tx_msg_moved, tx_msg, hdr_size); | 497 | memmove(tx_msg_moved, tx_msg, hdr_size); |
@@ -574,7 +574,7 @@ int i2400m_tx(struct i2400m *i2400m, const void *buf, size_t buf_len, | |||
574 | 574 | ||
575 | d_fnstart(3, dev, "(i2400m %p skb %p [%zu bytes] pt %u)\n", | 575 | d_fnstart(3, dev, "(i2400m %p skb %p [%zu bytes] pt %u)\n", |
576 | i2400m, buf, buf_len, pl_type); | 576 | i2400m, buf, buf_len, pl_type); |
577 | padded_len = ALIGN(buf_len, I2400M_PL_PAD); | 577 | padded_len = ALIGN(buf_len, I2400M_PL_ALIGN); |
578 | d_printf(5, dev, "padded_len %zd buf_len %zd\n", padded_len, buf_len); | 578 | d_printf(5, dev, "padded_len %zd buf_len %zd\n", padded_len, buf_len); |
579 | /* If there is no current TX message, create one; if the | 579 | /* If there is no current TX message, create one; if the |
580 | * current one is out of payload slots or we have a singleton, | 580 | * current one is out of payload slots or we have a singleton, |