mt76x2: remove msta->sleeping, it is unused

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-12-20 10:26:01 +01:00
parent 3b1ca1b61c
commit 93db8eede4
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -154,7 +154,6 @@ struct mt76x2_sta {
struct mt76x2_tx_status status;
int n_frames;
bool sleeping;
};
struct mt76x2_reg_pair {
-2
View File
@@ -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;
}
}