mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921: introduce CSA support
Add CSA (Channel Switch Announcement) related implementation in collaboration with mac80211 to deal with dynamic channel switching. Signed-off-by: Leon Yen <[email protected]> Signed-off-by: Ming Yen Hsieh <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -133,6 +133,9 @@ struct mt792x_vif {
|
||||
struct mt792x_phy *phy;
|
||||
u16 valid_links;
|
||||
u8 deflink_id;
|
||||
|
||||
struct work_struct csa_work;
|
||||
struct timer_list csa_timer;
|
||||
};
|
||||
|
||||
struct mt792x_phy {
|
||||
@@ -237,6 +240,8 @@ struct mt792x_dev {
|
||||
enum environment_cap country_ie_env;
|
||||
u32 backup_l1;
|
||||
u32 backup_l2;
|
||||
|
||||
struct ieee80211_chanctx_conf *new_ctx;
|
||||
};
|
||||
|
||||
static inline struct mt792x_bss_conf *
|
||||
@@ -369,6 +374,7 @@ void mt792x_set_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
u64 timestamp);
|
||||
void mt792x_tx_worker(struct mt76_worker *w);
|
||||
void mt792x_roc_timer(struct timer_list *timer);
|
||||
void mt792x_csa_timer(struct timer_list *timer);
|
||||
void mt792x_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
u32 queues, bool drop);
|
||||
int mt792x_assign_vif_chanctx(struct ieee80211_hw *hw,
|
||||
|
||||
Reference in New Issue
Block a user