From: Bruno Randolf <br1@einfach.org>
To: johannes@sipsolutions.net, linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 1/2] mac80211: Use G mandatory rates in 2GHz band
Date: Mon, 12 Apr 2010 16:36:58 +0900 [thread overview]
Message-ID: <20100412073658.28078.32155.stgit@tt-desk> (raw)
This changes the mandatory (basic) rates in the 2GHz band to the ERP mandatory
rates (1, 2, 5.5, 11, 6, 12, 24Mbps - as defined in 802.11 section 19.1.)
instead of the "B" mode basic rate (1Mbps - why not 2Mbps too?).
B-only drivers (are there any?) should still work with this change, since they
simply don't have the faster rates. The functional change is that we now
default to faster basic rates, but as far as i can tell this is only really
used in IBSS code (STAs have to adapt to their AP).
BTW: Is there a way to configure mac80211 to B-only mode or G-only mode? When
this is the case this has to be revised...
Signed-off-by: Bruno Randolf <br1@einfach.org>
---
net/mac80211/util.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 2b75b4f..282bda9 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -844,7 +844,8 @@ u32 ieee80211_mandatory_rates(struct ieee80211_local *local,
}
if (band == IEEE80211_BAND_2GHZ)
- mandatory_flag = IEEE80211_RATE_MANDATORY_B;
+ mandatory_flag = IEEE80211_RATE_MANDATORY_B |
+ IEEE80211_RATE_MANDATORY_G;
else
mandatory_flag = IEEE80211_RATE_MANDATORY_A;
next reply other threads:[~2010-04-12 7:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 7:36 Bruno Randolf [this message]
2010-04-12 7:37 ` [PATCH 2/2] mac80211: Initialize IBSS basic rates according to band Bruno Randolf
2010-04-12 7:41 ` Johannes Berg
2010-04-12 7:58 ` Bruno Randolf
2010-04-12 8:10 ` Johannes Berg
2010-04-12 8:34 ` Bruno Randolf
2010-04-12 8:40 ` Johannes Berg
2010-04-13 0:16 ` Bruno Randolf
2010-04-13 7:21 ` Johannes Berg
2010-04-13 7:56 ` Bruno Randolf
2010-04-12 7:39 ` [PATCH 1/2] mac80211: Use G mandatory rates in 2GHz band Johannes Berg
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=20100412073658.28078.32155.stgit@tt-desk \
--to=br1@einfach.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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.