Skip to content

Commit

Permalink
mt7603: toggle skip_tx on station add/remove
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Nov 16, 2018
1 parent 90e2c1b commit 41931e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mt7603/main.c
Expand Up @@ -310,6 +310,7 @@ mt7603_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
msta->wcid.sta = 1;
msta->wcid.idx = idx;
mt7603_wtbl_init(dev, idx, mvif->idx, sta->addr);
mt7603_wtbl_set_skip_tx(dev, idx, false);
mt7603_wtbl_update_cap(dev, sta);

if (vif->type == NL80211_IFTYPE_AP)
Expand All @@ -325,6 +326,7 @@ mt7603_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76);
struct mt76_wcid *wcid = (struct mt76_wcid *) sta->drv_priv;

mt7603_wtbl_set_skip_tx(dev, wcid->idx, true);
mt7603_wtbl_init(dev, wcid->idx, 0, NULL);
}

Expand Down

0 comments on commit 41931e4

Please sign in to comment.