On Fri, Dec 7, 2018 at 2:27 PM Stanislaw Gruszka <sgrus...@redhat.com> wrote: > > Use set_rts_threshold calback to enable/disable threshold only for > legacy traffic. > > Protection for HT and VHT traffic is defined by HT operation element > and it's provided by remote AP or by hostapd. > > Signed-off-by: Stanislaw Gruszka <sgrus...@redhat.com> > --- > drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 16 +--------------- > drivers/net/wireless/mediatek/mt76/mt76x02_mac.h | 2 +- > drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 2 +- > 3 files changed, 3 insertions(+), 17 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c > b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c > index c08bf371e527..9693d6140b3d 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c > +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c > @@ -715,7 +715,7 @@ void mt76x02_tx_complete_skb(struct mt76_dev *mdev, > struct mt76_queue *q, > } > EXPORT_SYMBOL_GPL(mt76x02_tx_complete_skb); >
[...] > diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c > b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c > index 3a70e5bf7d42..e7ee2cc76edf 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c > +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c > @@ -463,7 +463,7 @@ int mt76x02_set_rts_threshold(struct ieee80211_hw *hw, > u32 val) > return -EINVAL; > > mutex_lock(&dev->mutex); > - mt76x02_mac_set_tx_protection(dev, val); > + mt76x02_mac_set_rts_thresh(dev, val); > mutex_unlock(&dev->mutex); I think this patch will not apply since I have recently fixed an uninitialized mutex access setting rts threshold 1770f0fa978e ("mt76: fix uninitialized mutex access setting rts threshold"). That patch is in Kalle's pending branch now. You should probably respin on top of it. Regards, Lorenzo > > return 0; > -- > 1.9.3 >