1
0
mirror of https://github.com/OpenIntelWireless/itlwm.git synced 2025-06-02 03:22:13 +00:00

iwn: disable RTS flag since RTS/CTS protection not yet supported and tested.

This commit is contained in:
zxystd
2024-03-20 00:43:26 +08:00
parent 461ab521e4
commit e886ebb066

@ -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