mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: unify sta structure part 1
First 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
fcf2130e42
commit
1f35eb5b86
@@ -18,12 +18,31 @@
|
||||
#ifndef __MT76X02_MAC_H
|
||||
#define __MT76X02_MAC_H
|
||||
|
||||
struct mt76x02_tx_status {
|
||||
u8 valid:1;
|
||||
u8 success:1;
|
||||
u8 aggr:1;
|
||||
u8 ack_req:1;
|
||||
u8 wcid;
|
||||
u8 pktid;
|
||||
u8 retry;
|
||||
u16 rate;
|
||||
} __packed __aligned(2);
|
||||
|
||||
struct mt76x02_vif {
|
||||
u8 idx;
|
||||
|
||||
struct mt76_wcid group_wcid;
|
||||
};
|
||||
|
||||
struct mt76x02_sta {
|
||||
struct mt76_wcid wcid; /* must be first */
|
||||
|
||||
struct mt76x02_vif *vif;
|
||||
struct mt76x02_tx_status status;
|
||||
int n_frames;
|
||||
};
|
||||
|
||||
static inline bool mt76x02_wait_for_mac(struct mt76_dev *dev)
|
||||
{
|
||||
const u32 MAC_CSR0 = 0x1000;
|
||||
@@ -45,6 +64,8 @@ static inline bool mt76x02_wait_for_mac(struct mt76_dev *dev)
|
||||
return false;
|
||||
}
|
||||
|
||||
void mt76x02_txq_init(struct mt76_dev *dev, struct ieee80211_txq *txq);
|
||||
|
||||
enum mt76x02_cipher_type
|
||||
mt76x02_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user