mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x02: fix endian issue in tx status reporting patch
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -168,7 +168,8 @@ int mt76x02_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
|
||||
|
||||
/* encode packet rate for no-skb packet id to fix up status reporting */
|
||||
if (pid == MT_PACKET_ID_NO_SKB)
|
||||
pid = MT_PACKET_ID_HAS_RATE | (txwi->rate & MT_RXWI_RATE_INDEX);
|
||||
pid = MT_PACKET_ID_HAS_RATE |
|
||||
(le16_to_cpu(txwi->rate) & MT_RXWI_RATE_INDEX);
|
||||
|
||||
txwi->pktid = pid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user