mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-09 12:21:33 +00:00
a9693e1979c2 linux-firmware: add firmware for MT7996 0258dc90e3a1 wifi: mt76: mt7603: fix reading target power from eeprom 3e81173d9e2b wifi: mt76: mt7603: initialize chainmask 786a339bac36 wifi: mt76: mt7996: fix fortify warning bc37a7ebc267 wifi: mt76: mt7996: fix fw loading timeout 027bab6a88a3 wifi: mt76: usb: create a dedicated queue for psd traffic e8909c610c3b wifi: mt76: usb: store usb endpoint in mt76_queue 8b3d96fa4ead wifi: mt76: mt792xu: enable dmashdl support 7864d7ad0ed0 wifi: mt76: mt76x2u: add netgear wdna3100v3 to device table 27c81f7c1480 wifi: mt76: mt7925: fix connect to 80211b mode fail in 2Ghz band b7443c63069a wifi: mt76: mt7925: fix SAP no beacon issue in 5Ghz and 6Ghz band bab721a65f5a wifi: mt76: mt7925: fix mcu query command fail 1f0f71ed81e8 wifi: mt76: mt7925: fix wmm queue mapping bcfe2ad966f3 wifi: mt76: mt7925: fix fw download fail f982c3d67a29 wifi: mt76: mt7925: fix WoW failed in encrypted mode 6a72716ec213 wifi: mt76: mt7925: fix the wrong header translation config 50928b7e1359 wifi: mt76: mt7925: add flow to avoid chip bt function fail 762ab4530e8f wifi: mt76: mt7925: add support to set ifs time by mcu command 87deaf82efa4 wifi: mt76: mt7925: update PCIe DMA settings c190c1576522 wifi: mt76: mt7925: support temperature sensor 025d5734caba wifi: mt76: mt7996: check txs format before getting skb by pid 4768bfa2baca wifi: mt76: mt7996: fix TWT issues a65e3eced907 wifi: mt76: mt7996: disable AMSDU for non-data frames d71716d93aee wifi: mt76: mt7996: fix incorrect interpretation of EHT MCS caps f21728f3f4bd wifi: mt76: mt7996: ensure 4-byte alignment for beacon commands 68dad7dacd2a wifi: mt76: mt7996: fix HE beamformer phy cap for station vif 66a28f340cdc wifi: mt76: mt7996: mark GCMP IGTK unsupported b47ad8a7764e wifi: mt76: mt7996: fix efuse reading issue c2fc7dae7b72 wifi: mt76: mt7996: remove TXS queue setting e0f1ed168ed5 wifi: mt76: mt7996: add locking for accessing mapped registers d0cc92c1fd08 wifi: mt76: connac: set correct muar_idx for mt799x chipsets ae0c62279adc wifi: mt76: mt7996: fix HIF_TXD_V2_1 value ecc14276af54 wifi: mt76: mt792x: fix ethtool warning 9827df56b241 wifi: mt76: move wed common utilities in wed.c dccbd2598505 wifi: mt76: mt7925: fix the wrong data type for scan command 9907f4f20261 wifi: mt76: mt792x: add the illegal value check for mtcl table of acpi 1b088a7ac06d wifi: mt76: mt7921e: fix use-after-free in free_irq() f3c5b4820d7f wifi: mt76: mt7925e: fix use-after-free in free_irq() d75eac9f5531 wifi: mt76: mt7921: fix incorrect type conversion for CLC command 7bd5401f5bb1 wifi: mt76: mt792x: fix a potential loading failure of the 6Ghz channel config from ACPI ea55196bc4a0 wifi: mt76: mt792x: update the country list of EU for ACPI SAR 6124ea9135ed wifi: mt76: mt7921: fix the unfinished command of regd_notifier before suspend Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 114190d8ae61fb3a7671852fbd7f0ca3279a5625) [rmilecki: add patches/fixes for regressions from this commit] Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
57 lines
1.8 KiB
Diff
57 lines
1.8 KiB
Diff
From b108dda7e201994f10c885362b07ff3b6e1e843d Mon Sep 17 00:00:00 2001
|
|
From: Chad Monroe <chad@monroe.io>
|
|
Date: Tue, 5 Mar 2024 17:55:35 +0000
|
|
Subject: [PATCH] wifi: mt76: mt7996: fix size of txpower MCU command
|
|
|
|
Fixes issues with scanning and low power output at some rates.
|
|
|
|
Fixes: f75e4779d215 ("wifi: mt76: mt7996: add txpower setting support")
|
|
Signed-off-by: Chad Monroe <chad@monroe.io>
|
|
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
mt7996/mcu.c | 7 +++++--
|
|
mt7996/mt7996.h | 1 +
|
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
--- a/mt7996/mcu.c
|
|
+++ b/mt7996/mcu.c
|
|
@@ -4464,7 +4464,7 @@ int mt7996_mcu_set_txpower_sku(struct mt
|
|
u8 band_idx;
|
|
} __packed req = {
|
|
.tag = cpu_to_le16(UNI_TXPOWER_POWER_LIMIT_TABLE_CTRL),
|
|
- .len = cpu_to_le16(sizeof(req) + MT7996_SKU_RATE_NUM - 4),
|
|
+ .len = cpu_to_le16(sizeof(req) + MT7996_SKU_PATH_NUM - 4),
|
|
.power_ctrl_id = UNI_TXPOWER_POWER_LIMIT_TABLE_CTRL,
|
|
.power_limit_type = TX_POWER_LIMIT_TABLE_RATE,
|
|
.band_idx = phy->mt76->band_idx,
|
|
@@ -4479,7 +4479,7 @@ int mt7996_mcu_set_txpower_sku(struct mt
|
|
mphy->txpower_cur = tx_power;
|
|
|
|
skb = mt76_mcu_msg_alloc(&dev->mt76, NULL,
|
|
- sizeof(req) + MT7996_SKU_RATE_NUM);
|
|
+ sizeof(req) + MT7996_SKU_PATH_NUM);
|
|
if (!skb)
|
|
return -ENOMEM;
|
|
|
|
@@ -4503,6 +4503,9 @@ int mt7996_mcu_set_txpower_sku(struct mt
|
|
/* eht */
|
|
skb_put_data(skb, &la.eht[0], sizeof(la.eht));
|
|
|
|
+ /* padding */
|
|
+ skb_put_zero(skb, MT7996_SKU_PATH_NUM - MT7996_SKU_RATE_NUM);
|
|
+
|
|
return mt76_mcu_skb_send_msg(&dev->mt76, skb,
|
|
MCU_WM_UNI_CMD(TXPOWER), true);
|
|
}
|
|
--- a/mt7996/mt7996.h
|
|
+++ b/mt7996/mt7996.h
|
|
@@ -50,6 +50,7 @@
|
|
#define MT7996_CFEND_RATE_11B 0x03 /* 11B LP, 11M */
|
|
|
|
#define MT7996_SKU_RATE_NUM 417
|
|
+#define MT7996_SKU_PATH_NUM 494
|
|
|
|
#define MT7996_MAX_TWT_AGRT 16
|
|
#define MT7996_MAX_STA_TWT_AGRT 8
|