patch for SMPS mode. after discussion, setting the IEEE80211_TX_RC_USE_RTS_CTS flag for first rate if dynamic SMPS is on in the receiving station Signed-off-by: Vivekananda Holla <vivekanandah@xxxxxxxxxxx> --- net/mac80211/rc80211_minstrel_ht.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index d2b264d..fbca005 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -745,6 +745,10 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, minstrel_ht_set_rate(mp, mi, &ar[0], mi->max_tp_rate, false, false); } + + /* set RTS Flag for the first rate if dynamic SMPS is on for sta */ + if (sta->smps_mode == IEEE80211_SMPS_DYNAMIC) + ar[0].flags |= IEEE80211_TX_RC_USE_RTS_CTS; if (mp->hw->max_rates >= 3) { /* -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html