mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 11:36:35 +00:00
wifi: mt76: mt7996: fix rate usage of inband discovery frames
[ Upstream commit1e3f387736
] For UBPR and FILS frames, the BSS_CHANGED_BEACON flag will also be set, which causes those frames to use the beacon rate in TX descriptors. Adjust the statement to fix this issue. Fixes:98686cd216
("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: MeiChia Chiu <meichia.chiu@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
041f75b38b
commit
d03559452a
1 changed files with 2 additions and 2 deletions
|
@ -840,10 +840,10 @@ void mt7996_mac_write_txwi(struct mt7996_dev *dev, __le32 *txwi,
|
||||||
struct mt76_vif *mvif;
|
struct mt76_vif *mvif;
|
||||||
u16 tx_count = 15;
|
u16 tx_count = 15;
|
||||||
u32 val;
|
u32 val;
|
||||||
bool beacon = !!(changed & (BSS_CHANGED_BEACON |
|
|
||||||
BSS_CHANGED_BEACON_ENABLED));
|
|
||||||
bool inband_disc = !!(changed & (BSS_CHANGED_UNSOL_BCAST_PROBE_RESP |
|
bool inband_disc = !!(changed & (BSS_CHANGED_UNSOL_BCAST_PROBE_RESP |
|
||||||
BSS_CHANGED_FILS_DISCOVERY));
|
BSS_CHANGED_FILS_DISCOVERY));
|
||||||
|
bool beacon = !!(changed & (BSS_CHANGED_BEACON |
|
||||||
|
BSS_CHANGED_BEACON_ENABLED)) && (!inband_disc);
|
||||||
|
|
||||||
mvif = vif ? (struct mt76_vif *)vif->drv_priv : NULL;
|
mvif = vif ? (struct mt76_vif *)vif->drv_priv : NULL;
|
||||||
if (mvif) {
|
if (mvif) {
|
||||||
|
|
Loading…
Reference in a new issue