From b697844998a0e2e1d250b238f69c539f18af2fd9 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Sat, 27 Feb 2010 09:55:26 +0100 Subject: [PATCH] Disable RTS threshold when A-MSDU Tx is enabled --- rt2860.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rt2860.c b/rt2860.c index 872bf40..c03eb8a 100644 --- a/rt2860.c +++ b/rt2860.c @@ -2822,8 +2822,11 @@ static void rt2860_asic_update_rtsthreshold(struct rt2860_softc *sc) tmp &= ~(RT2860_REG_TX_RTS_THRESHOLD_MASK << RT2860_REG_TX_RTS_THRESHOLD_SHIFT); - threshold = (ic->ic_rtsthreshold < IEEE80211_RTS_MAX) ? - ic->ic_rtsthreshold : 0x1000; + if (ic->ic_flags_ext & IEEE80211_FEXT_AMSDU_TX) + threshold = 0x1000; + else + threshold = ic->ic_rtsthreshold; + tmp |= ((threshold & RT2860_REG_TX_RTS_THRESHOLD_MASK) << RT2860_REG_TX_RTS_THRESHOLD_SHIFT); -- 2.11.4.GIT