Skip to content

Commit

Permalink
mt7603: add fix for CCA signal configuration
Browse files Browse the repository at this point in the history
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 980c606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mt7603_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 3 additions & 0 deletions mt7603_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 980c606

Please sign in to comment.