diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-12-12 22:51:55 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-01-11 15:10:18 +0100 |
commit | f82ce8d9bd49ed1c3487662c734badfbf560cfe0 (patch) | |
tree | 5f71781dbc7555c9d236d49467ea241d523e17fa /drivers/net/wireless/mediatek/mt76/mt76x02.h | |
parent | 3fd612df8ac79d8ac902985cb570f1723a82e979 (diff) | |
download | linux-stable-f82ce8d9bd49ed1c3487662c734badfbf560cfe0.tar.gz linux-stable-f82ce8d9bd49ed1c3487662c734badfbf560cfe0.tar.bz2 linux-stable-f82ce8d9bd49ed1c3487662c734badfbf560cfe0.zip |
mt76: add energy detect CCA support to mt76x{0,2}e drivers
Ported from the reference driver. Should fix compliance with ETSI
regulatories on preventing transmission while energy detect values
are above the threshold.
The code has been tested using an ath9k device running tx99 as
noise generator
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02.h b/drivers/net/wireless/mediatek/mt76/mt76x02.h index 6782665049dd..f383fdd914c5 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02.h @@ -101,6 +101,12 @@ struct mt76x02_dev { u8 slottime; struct mt76x02_dfs_pattern_detector dfs_pd; + + /* edcca monitor */ + bool ed_tx_blocked; + bool ed_monitor; + u8 ed_trigger; + u8 ed_silent; }; extern struct ieee80211_rate mt76x02_rates[12]; |