mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: fix msg len mismatch between driver and firmware
The mt7925_tx_power_limit_tlv struct begins with a 4-byte rsv[] field
that acts as a UNI command header prefix. The firmware dispatcher did
not use the 4-byte rsv[] and will only check the payloads after the
4-byte rsv[] As a result, the total message length minus the 4-byte
prefix. Fix this by setting len to msg_len - 4.
Fixes: ccb1863 ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Jared.Huang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
2119837464
commit
cead9778a9
+1
-1
@@ -3913,7 +3913,7 @@ mt7925_mcu_rate_txpower_band(struct mt76_phy *phy,
|
||||
memcpy(tx_power_tlv->alpha2, dev->alpha2, sizeof(dev->alpha2));
|
||||
tx_power_tlv->n_chan = num_ch;
|
||||
tx_power_tlv->tag = cpu_to_le16(0x1);
|
||||
tx_power_tlv->len = cpu_to_le16(msg_len);
|
||||
tx_power_tlv->len = cpu_to_le16(msg_len - 4);
|
||||
|
||||
switch (band) {
|
||||
case NL80211_BAND_2GHZ:
|
||||
|
||||
Reference in New Issue
Block a user