]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mt76: mt7921: fix antenna signal are way off in monitor mode
authorSean Wang <sean.wang@mediatek.com>
Fri, 16 Sep 2022 22:46:45 +0000 (06:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:20 +0000 (13:32 +0100)
commitc6cd8bacafc2306dc7b2ef947affe62d16511ca1
tree3a7b9093cd6e4cdcdbc444bb7a7285994932631e
parentae99debcf6b8676af542cc3cb199ae6377ccbd14
wifi: mt76: mt7921: fix antenna signal are way off in monitor mode

[ Upstream commit c256ba6b1909f28b517274282b6845567e974143 ]

Group 3 in RxD is disabled in monitor mode. We should use the group 5 in
RxD instead to fix antenna signal way off issue, e.g we would see the
incorrect antenna signal value in wireshark. On the other hand, Group 5
wouldn't be used in STA or AP mode, so the patch shouldn't cause any
harm to those modes.

Fixes: cbaa0a404f8d ("mt76: mt7921: fix up the monitor mode")
Reported-by: Adrian Granados <agranados@gmail.com>
Co-developed-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c