Patch "mt76: mt7915: fix endianness warning in mt7915_mac_add_txs_skb" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mt76: mt7915: fix endianness warning in mt7915_mac_add_txs_skb

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mt76-mt7915-fix-endianness-warning-in-mt7915_mac_add.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a4608c7d8aac5519fea8bc5f7d521962e08aea95
Author: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
Date:   Mon Jun 21 10:21:31 2021 +0200

    mt76: mt7915: fix endianness warning in mt7915_mac_add_txs_skb
    
    [ Upstream commit 08b3c8da87aed4200dab00906f149d675ca90f23 ]
    
    Fix the following sparse warning in mt7915_mac_add_txs_skb routine:
    
    drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1235:29:
            warning: cast to restricted __le32
    drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1235:23:
            warning: restricted __le32 degrades to integer
    
    Fixes: 3de4cb1756565 ("mt76: mt7915: add support for tx status reporting")
    Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
    Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
index 2462704094b0a..bbc996f86b5c3 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
@@ -1232,7 +1232,7 @@ mt7915_mac_add_txs_skb(struct mt7915_dev *dev, struct mt76_wcid *wcid, int pid,
 		goto out;
 
 	info = IEEE80211_SKB_CB(skb);
-	if (!(txs_data[0] & le32_to_cpu(MT_TXS0_ACK_ERROR_MASK)))
+	if (!(txs_data[0] & cpu_to_le32(MT_TXS0_ACK_ERROR_MASK)))
 		info->flags |= IEEE80211_TX_STAT_ACK;
 
 	info->status.ampdu_len = 1;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux