Skip to content

Commit

Permalink
iwn: disable RTS flag since RTS/CTS protection not yet supported and …
Browse files Browse the repository at this point in the history
…tested.
  • Loading branch information
zxystd committed Mar 19, 2024
1 parent 461ab52 commit e886ebb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions itlwm/hal_iwn/ItlIwn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e886ebb

Please sign in to comment.