Search Linux Wireless

[Patch] mac80211: SMPS for AP Mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux