From: Vivekananda Holla <vivekanandah@posedge.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [Patch] mac80211: SMPS for AP Mode
Date: Wed, 10 Apr 2013 16:12:05 +0530 [thread overview]
Message-ID: <516541FD.9050109@posedge.com> (raw)
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@posedge.com>
---
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) {
/*
next reply other threads:[~2013-04-10 10:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 10:42 Vivekananda Holla [this message]
2013-04-10 11:18 ` [Patch] mac80211: SMPS for AP Mode Johannes Berg
2013-04-11 5:21 ` vivekanandah
2013-04-11 8:22 ` Johannes Berg
-- strict thread matches above, loose matches on Subject: below --
2013-04-10 8:54 Vivekananda Holla
2013-04-10 8:55 ` Johannes Berg
2013-04-10 9:35 ` Vivekananda Holla
2013-04-10 9:46 ` Johannes Berg
2013-04-10 9:47 ` Johannes Berg
2013-04-10 9:55 ` Vivekananda Holla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=516541FD.9050109@posedge.com \
--to=vivekanandah@posedge.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.