Skip to content

Commit

Permalink
mt76: toggle driver station powersave bit before notifying mac80211
Browse files Browse the repository at this point in the history
Avoids race conditions from mac80211 enqueueing tx packets before the
tx-drop bit is cleared

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Feb 9, 2018
1 parent 3413961 commit c60e6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mac80211.c
Expand Up @@ -514,8 +514,8 @@ mt76_check_ps(struct mt76_dev *dev, struct sk_buff *skb)
clear_bit(MT_WCID_FLAG_PS, &wcid->flags);
}

ieee80211_sta_ps_transition(sta, ps);
dev->drv->sta_ps(dev, sta, ps);
ieee80211_sta_ps_transition(sta, ps);
}

void mt76_rx_complete(struct mt76_dev *dev, struct sk_buff_head *frames,
Expand Down

0 comments on commit c60e6db

Please sign in to comment.