Patch "wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_info" has been added to the 6.4-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

    wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_info

to the 6.4-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:
     wifi-mt76-mt7915-fix-tlv-length-of-mt7915_mcu_get_ch.patch
and it can be found in the queue-6.4 subdirectory.

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



commit 39480a8e49d7312aeecbad353e6c47d9d7b6a427
Author: Ryder Lee <ryder.lee@xxxxxxxxxxxx>
Date:   Thu Jul 27 02:35:05 2023 +0800

    wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_info
    
    [ Upstream commit 4f1875c288dfc1ccea81fc17fef1d30c9d8498b2 ]
    
    Correct per-device TLV lengths to avoid invalid operation in firmware.
    (  64.040375:28:STATS-E)statsGetSingleHWCounter: MIB counter index = 65472 not supported.
    This happens on mt7916/mt7986.
    
    Fixes: b0bfa00595be ("wifi: mt76: mt7915: improve accuracy of time_busy calculation")
    Signed-off-by: Ryder Lee <ryder.lee@xxxxxxxxxxxx>
    Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
index a325066bf57e9..1a8611c6b684d 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
@@ -3000,7 +3000,7 @@ int mt7915_mcu_get_chan_mib_info(struct mt7915_phy *phy, bool chan_switch)
 	}
 
 	ret = mt76_mcu_send_and_get_msg(&dev->mt76, MCU_EXT_CMD(GET_MIB_INFO),
-					req, sizeof(req), true, &skb);
+					req, len * sizeof(req[0]), true, &skb);
 	if (ret)
 		return ret;
 



[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