Commit 7d9f1d10 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau

mt76: mt7615: introduce mt7615_wtbl_desc data structure

Generalize mt7615_rate_desc introducing mt7615_wtbl_desc and
mt7615_key_desc data structures in order to configure the hw wtbl
in a non-atomic context for usb devices
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 294f17ae
...@@ -895,7 +895,6 @@ mt7615_mac_update_rate_desc(struct mt7615_phy *phy, struct mt7615_sta *sta, ...@@ -895,7 +895,6 @@ mt7615_mac_update_rate_desc(struct mt7615_phy *phy, struct mt7615_sta *sta,
rd->bw_idx = 7; rd->bw_idx = 7;
rd->rateset = rateset; rd->rateset = rateset;
rd->sta = sta;
rd->bw = bw; rd->bw = bw;
} }
......
...@@ -92,10 +92,6 @@ struct mt7615_rate_set { ...@@ -92,10 +92,6 @@ struct mt7615_rate_set {
}; };
struct mt7615_rate_desc { struct mt7615_rate_desc {
struct list_head node;
struct mt7615_sta *sta;
bool rateset; bool rateset;
u16 probe_val; u16 probe_val;
u16 val[4]; u16 val[4];
...@@ -103,6 +99,31 @@ struct mt7615_rate_desc { ...@@ -103,6 +99,31 @@ struct mt7615_rate_desc {
u8 bw; u8 bw;
}; };
enum mt7615_wtbl_desc_type {
MT7615_WTBL_RATE_DESC,
MT7615_WTBL_KEY_DESC
};
struct mt7615_key_desc {
enum set_key_cmd cmd;
u32 cipher;
s8 keyidx;
u8 keylen;
u8 *key;
};
struct mt7615_wtbl_desc {
struct list_head node;
enum mt7615_wtbl_desc_type type;
struct mt7615_sta *sta;
union {
struct mt7615_rate_desc rate;
struct mt7615_key_desc key;
};
};
struct mt7615_sta { struct mt7615_sta {
struct mt76_wcid wcid; /* must be first */ struct mt76_wcid wcid; /* must be first */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment