mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: change .sta_assoc callback to .sta_event
Also report auth/disassoc events, in order to give the driver more control over handling the station state. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -471,6 +471,12 @@ enum {
|
||||
MT76_STATE_WED_RESET,
|
||||
};
|
||||
|
||||
enum mt76_sta_event {
|
||||
MT76_STA_EVENT_ASSOC,
|
||||
MT76_STA_EVENT_AUTHORIZE,
|
||||
MT76_STA_EVENT_DISASSOC,
|
||||
};
|
||||
|
||||
struct mt76_hw_cap {
|
||||
bool has_2ghz;
|
||||
bool has_5ghz;
|
||||
@@ -517,8 +523,8 @@ struct mt76_driver_ops {
|
||||
int (*sta_add)(struct mt76_dev *dev, struct ieee80211_vif *vif,
|
||||
struct ieee80211_sta *sta);
|
||||
|
||||
void (*sta_assoc)(struct mt76_dev *dev, struct ieee80211_vif *vif,
|
||||
struct ieee80211_sta *sta);
|
||||
int (*sta_event)(struct mt76_dev *dev, struct ieee80211_vif *vif,
|
||||
struct ieee80211_sta *sta, enum mt76_sta_event ev);
|
||||
|
||||
void (*sta_remove)(struct mt76_dev *dev, struct ieee80211_vif *vif,
|
||||
struct ieee80211_sta *sta);
|
||||
|
||||
Reference in New Issue
Block a user