From: Bruno Randolf <br1@einfach.org>
To: johannes@sipsolutions.net, linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 2/2] mac80211: Initialize IBSS basic rates according to band
Date: Mon, 12 Apr 2010 16:37:03 +0900 [thread overview]
Message-ID: <20100412073703.28078.90501.stgit@tt-desk> (raw)
In-Reply-To: <20100412073658.28078.32155.stgit@tt-desk>
When we create an IBSS we are can define the basic rates according to the band
in use. Previously only the B mode rates (1 and 2Mbps) were used
unconditionally, which resulted in low thruput when using RTS/CTS.
Also we should save the IBSS basic rates configuration when we join an IBSS.
Signed-off-by: Bruno Randolf <br1@einfach.org>
---
net/mac80211/ibss.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index 01974c2..05846ab 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -77,6 +77,10 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
u32 bss_change;
u8 supp_rates[IEEE80211_MAX_SUPP_RATES];
+#ifdef CONFIG_MAC80211_IBSS_DEBUG
+ printk(KERN_DEBUG "JOIN IBSS basic_rates %x\n", basic_rates);
+#endif
+
/* Reset own TSF to allow time synchronization work. */
drv_reset_tsf(local);
@@ -165,6 +169,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
rcu_assign_pointer(ifibss->presp, skb);
sdata->vif.bss_conf.beacon_int = beacon_int;
+ sdata->vif.bss_conf.basic_rates = basic_rates;
bss_change = BSS_CHANGED_BEACON_INT;
bss_change |= ieee80211_reset_erp_info(sdata);
bss_change |= BSS_CHANGED_BSSID;
@@ -518,7 +523,8 @@ static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)
sdata->drop_unencrypted = 0;
__ieee80211_sta_join_ibss(sdata, bssid, sdata->vif.bss_conf.beacon_int,
- ifibss->channel, 3, /* first two are basic */
+ ifibss->channel,
+ ieee80211_mandatory_rates(local, sband->band),
capability, 0);
}
next prev parent 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 [PATCH 1/2] mac80211: Use G mandatory rates in 2GHz band Bruno Randolf
2010-04-12 7:37 ` Bruno Randolf [this message]
2010-04-12 7:41 ` [PATCH 2/2] mac80211: Initialize IBSS basic rates according to band 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=20100412073703.28078.90501.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox