mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: Disable Rx hdr_trans in monitor mode
Ensure raw frames are captured without header modification. Signed-off-by: Ryder Lee <[email protected]> Link: https://patch.msgid.link/04008426d6cd5de3995beefb98f9d13f35526c25.1770969275.git.ryder.lee@mediatek.com Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -484,6 +484,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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user