From e886ebb06658d6aee70f87e30a6bbbd0acad1f57 Mon Sep 17 00:00:00 2001 From: zxystd <1051244836@qq.com> Date: Wed, 20 Mar 2024 00:43:26 +0800 Subject: [PATCH] iwn: disable RTS flag since RTS/CTS protection not yet supported and tested. --- itlwm/hal_iwn/ItlIwn.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/itlwm/hal_iwn/ItlIwn.cpp b/itlwm/hal_iwn/ItlIwn.cpp index 839bdc3a..8da07e73 100644 --- a/itlwm/hal_iwn/ItlIwn.cpp +++ b/itlwm/hal_iwn/ItlIwn.cpp @@ -4060,9 +4060,17 @@ iwn_set_link_quality(struct iwn_softc *sc, struct ieee80211_node *ni) linkq.ampdu_threshold = 3; linkq.ampdu_limit = htole16(4000); /* 4ms */ - if (ic->ic_flags & IEEE80211_F_USEPROT) - if (sc->hw_type != IWN_HW_REV_TYPE_4965) +#if 0 // RTS/CTS protection not yet tested + if (ni->ni_flags & IEEE80211_NODE_HT && + sc->agg_queue_mask > 0 && + ic->ic_flags & IEEE80211_F_USEPROT) + if (sc->hw_type != IWN_HW_REV_TYPE_4965 && + sc->hw_type != IWN_HW_REV_TYPE_5300 && + sc->hw_type != IWN_HW_REV_TYPE_5150 && + sc->hw_type != IWN_HW_REV_TYPE_5350 && + sc->hw_type != IWN_HW_REV_TYPE_5100) linkq.flags |= IWN_LINK_QUAL_FLAGS_SET_STA_TLC_RTS; +#endif /* * Fill the LQ rate selection table with legacy and/or HT rates