mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
wifi: mt76: mt7996: Disable Rx hdr_trans in monitor mode
Ensure raw frames are captured without header modification. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Link: https://patch.msgid.link/04008426d6cd5de3995beefb98f9d13f35526c25.1770969275.git.ryder.lee@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
c9ce833d78
commit
947d63d8cd
|
|
@ -482,6 +482,8 @@ static void mt7996_set_monitor(struct mt7996_phy *phy, bool enabled)
|
|||
|
||||
mt76_rmw_field(dev, MT_DMA_DCR0(phy->mt76->band_idx),
|
||||
MT_DMA_DCR0_RXD_G5_EN, enabled);
|
||||
mt76_rmw_field(dev, MT_MDP_DCR0,
|
||||
MT_MDP_DCR0_RX_HDR_TRANS_EN, !enabled);
|
||||
mt7996_phy_set_rxfilter(phy);
|
||||
mt7996_mcu_set_sniffer_mode(phy, enabled);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -159,6 +159,9 @@ enum offs_rev {
|
|||
#define MT_MDP_BASE 0x820cc000
|
||||
#define MT_MDP(ofs) (MT_MDP_BASE + (ofs))
|
||||
|
||||
#define MT_MDP_DCR0 MT_MDP(0x800)
|
||||
#define MT_MDP_DCR0_RX_HDR_TRANS_EN BIT(19)
|
||||
|
||||
#define MT_MDP_DCR2 MT_MDP(0x8e8)
|
||||
#define MT_MDP_DCR2_RX_TRANS_SHORT BIT(2)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user