diff options
Diffstat (limited to 'mt7915/mac.c')
-rw-r--r-- | mt7915/mac.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mt7915/mac.c b/mt7915/mac.c index c827c57b..0ec9a619 100644 --- a/mt7915/mac.c +++ b/mt7915/mac.c @@ -231,6 +231,19 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) rcu_read_unlock(); } +void mt7915_mac_enable_rtscts(struct mt7915_dev *dev, + struct ieee80211_vif *vif, bool enable) +{ + struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; + u32 addr; + + addr = mt7915_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); + if (enable) + mt76_set(dev, addr, BIT(5)); + else + mt76_clear(dev, addr, BIT(5)); +} + static int mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb) { |