Skip to content

Commit

Permalink
mt76: mt7615: fix msdu_id endianness in mt7615_write_hw_txp
Browse files Browse the repository at this point in the history
Fix the following sparse warning in mt7615_write_hw_txp:

warning: incorrect type in assignment (different base types)
   expected restricted __le16
   got unsigned long

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Feb 7, 2020
1 parent d5a5e97 commit a67e429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7615/mac.c
Expand Up @@ -1079,7 +1079,7 @@ mt7615_write_hw_txp(struct mt7615_dev *dev, struct mt76_tx_info *tx_info,
tx_info->buf[0].len = MT_TXD_SIZE + sizeof(*txp);
tx_info->nbuf = 1;

txp->msdu_id[0] = id | MT_MSDU_ID_VALID;
txp->msdu_id[0] = cpu_to_le16(id | MT_MSDU_ID_VALID);

for (i = 0; i < nbuf; i++) {
u32 addr = tx_info->buf[i + 1].addr;
Expand Down

0 comments on commit a67e429

Please sign in to comment.