Skip to content
Permalink
Browse files

mt7603: add fix for CCA signal configuration

Allow preamble detection to block tx

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Aug 24, 2018
1 parent 7daf962 commit 980c60666eb57daa144d8725712ba303e876e677
Showing with 7 additions and 0 deletions.
  1. +4 −0 mt7603_init.c
  2. +3 −0 mt7603_regs.h
@@ -212,6 +212,10 @@ mt7603_mac_init(struct mt7603_dev *dev)

mt76_rmw_field(dev, MT_AGG_PCR_RTS, MT_AGG_PCR_RTS_PKT_THR, 3);
mt76_set(dev, MT_TMAC_PCR, MT_TMAC_PCR_SPE_EN);

/* include preamble detection in CCA trigger signal */
mt76_rmw_field(dev, MT_TXREQ, MT_TXREQ_CCA_SRC_SEL, 2);

mt76_wr(dev, MT_RXREQ, 4);

/* Configure all rx packets to HIF */
@@ -328,6 +328,9 @@ enum {
#define MT_TIMEOUT_VAL_PLCP GENMASK(15, 0)
#define MT_TIMEOUT_VAL_CCA GENMASK(31, 16)

#define MT_TXREQ MT_WF_TMAC(0x09c)
#define MT_TXREQ_CCA_SRC_SEL GENMASK(31, 30)

#define MT_RXREQ MT_WF_TMAC(0x0a0)
#define MT_RXREQ_DELAY GENMASK(8, 0)

0 comments on commit 980c606

Please sign in to comment.
You can’t perform that action at this time.