mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x2: remove msta->sleeping, it is unused
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -154,7 +154,6 @@ struct mt76x2_sta {
|
||||
|
||||
struct mt76x2_tx_status status;
|
||||
int n_frames;
|
||||
bool sleeping;
|
||||
};
|
||||
|
||||
struct mt76x2_reg_pair {
|
||||
|
||||
@@ -275,13 +275,11 @@ mt76x2_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
|
||||
switch (cmd) {
|
||||
case STA_NOTIFY_SLEEP:
|
||||
msta->sleeping = true;
|
||||
mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx));
|
||||
mt76_stop_tx_queues(&dev->mt76, sta);
|
||||
break;
|
||||
case STA_NOTIFY_AWAKE:
|
||||
mt76_clear(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx));
|
||||
msta->sleeping = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user