diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2019-03-19 11:37:38 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-05-01 13:03:56 +0200 |
commit | c004b881f1447ff768ccef9ba60a975c122a0596 (patch) | |
tree | 00ad5b545af4526fc852ed1bbc3e52ca7775ff1a /drivers/net/wireless/mediatek/mt76/mt76x02.h | |
parent | 5a3f1cc288fb2cb2597bd8ff8640a8de2ba14bd8 (diff) | |
download | linux-stable-c004b881f1447ff768ccef9ba60a975c122a0596.tar.gz linux-stable-c004b881f1447ff768ccef9ba60a975c122a0596.tar.bz2 linux-stable-c004b881f1447ff768ccef9ba60a975c122a0596.zip |
mt76x02: introduce beacon_ops
Enabling/disableing TBTT and beacon will be diffrent for USB. Introduce
beacon_ops to encapsulate that and implement it for MMIO. USB
implementation is noop for now.
Signed-off-by: Stanislaw Gruszka <sgruszka@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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02.h b/drivers/net/wireless/mediatek/mt76/mt76x02.h index 1a5fc10f440c..74495a47e7b6 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02.h @@ -68,6 +68,11 @@ struct mt76x02_calibration { s8 tssi_dc; }; +struct mt76x02_beacon_ops { + void (*pre_tbtt_enable) (struct mt76x02_dev *, bool); + void (*beacon_enable) (struct mt76x02_dev *, bool); +}; + struct mt76x02_dev { struct mt76_dev mt76; /* must be first */ @@ -91,6 +96,8 @@ struct mt76x02_dev { struct hrtimer pre_tbtt_timer; struct work_struct pre_tbtt_work; + const struct mt76x02_beacon_ops *beacon_ops; + u32 aggr_stats[32]; struct sk_buff *beacons[8]; |