wifi: mt76: mt7996: fix rate usage of inband discovery frames
authorMeiChia Chiu <meichia.chiu@mediatek.com>
Mon, 23 Oct 2023 15:38:54 +0000 (23:38 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 7 Dec 2023 17:50:21 +0000 (18:50 +0100)
commit1e3f387736c744e73b5398a147b90412f82f54da
tree9ee956f96988563b481d763cd089d6e2cd5ad0a8
parent22f5dc781574b0f7ce7b491165dcf14bd6151a51
wifi: mt76: mt7996: fix rate usage of inband discovery frames

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: 98686cd21624 ("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>
drivers/net/wireless/mediatek/mt76/mt7996/mac.c