mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: unify sta structure part 2
Second part of unifying mt76x02_sta structure between mt76x0 and mt76x2. Signed-off-by: Stanislaw Gruszka <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
1f35eb5b86
commit
086ea9f42c
@@ -18,6 +18,8 @@
|
||||
#ifndef __MT76X02_MAC_H
|
||||
#define __MT76X02_MAC_H
|
||||
|
||||
#include <linux/average.h>
|
||||
|
||||
struct mt76x02_tx_status {
|
||||
u8 valid:1;
|
||||
u8 success:1;
|
||||
@@ -35,12 +37,17 @@ struct mt76x02_vif {
|
||||
struct mt76_wcid group_wcid;
|
||||
};
|
||||
|
||||
DECLARE_EWMA(signal, 10, 8);
|
||||
|
||||
struct mt76x02_sta {
|
||||
struct mt76_wcid wcid; /* must be first */
|
||||
|
||||
struct mt76x02_vif *vif;
|
||||
struct mt76x02_tx_status status;
|
||||
int n_frames;
|
||||
|
||||
struct ewma_signal rssi;
|
||||
int inactive_count;
|
||||
};
|
||||
|
||||
static inline bool mt76x02_wait_for_mac(struct mt76_dev *dev)
|
||||
|
||||
Reference in New Issue
Block a user