From: Nicolas Cavallari <Nicolas.Cavallari@lri.fr>
To: Julian Calaby <julian.calaby@gmail.com>
Cc: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>,
linux-wireless@vger.kernel.org, linville@tuxdriver.com,
johannes@sipsolutions.net,
Simon Wunderlich <siwu@hrz.tu-chemnitz.de>,
Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Subject: Re: [PATCH] mac80211: adapt slot time in IBSS mode
Date: Tue, 04 Dec 2012 09:08:07 +0100 [thread overview]
Message-ID: <50BDAF67.4020106@lri.fr> (raw)
In-Reply-To: <CAGRGNgXqQAnUK7_nKkwVpn1OyVMb2B8Dykbjr2X=6AJTa5OJZg@mail.gmail.com>
On 04/12/2012 00:00, Julian Calaby wrote:
> Hi Simon,
>
> On Tue, Dec 4, 2012 at 8:21 AM, Simon Wunderlich
> <simon.wunderlich@s2003.tu-chemnitz.de> wrote:
>> In 5GHz/802.11a, we are allowed to use short slot times. Doing this
>> may increases performance by 20% for legacy connections (54 MBit/s).
>> I can confirm this in my tests (27% more throughput using iperf), and
>> also have a small positive effect (5% more throughput) for HT rates,
>> tested on 1 stream.
>>
>> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
>> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
>> ---
>> net/mac80211/ibss.c | 13 +++++++++++++
>> 1 file changed, 13 insertions(+)
>>
>> diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
>> index fa862b2..1a5d29c 100644
>> --- a/net/mac80211/ibss.c
>> +++ b/net/mac80211/ibss.c
>> @@ -201,6 +201,19 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
>> bss_change |= BSS_CHANGED_BASIC_RATES;
>> bss_change |= BSS_CHANGED_HT;
>> bss_change |= BSS_CHANGED_IBSS;
>> +
>> + /* In 5 GHz/802.11a, we can always use short slot time.
>> + * (IEEE 802.11-2012 18.3.8.7)
>> + *
>> + * In 2.4GHz, we must always use long slots in IBSS for compatibility
>> + * reasons.
>> + * (IEEE 802.11-2012 19.4.5)
>> + *
>> + * HT follows these specifications (IEEE 802.11-2012 20.3.18)
>> + */
>> + sdata->vif.bss_conf.use_short_slot = chan->band == IEEE80211_BAND_5GHZ;
>> + bss_change |= BSS_CHANGED_ERP_SLOT;
>> +
>
> I don't know if this is done elsewhere, but this code doesn't match
> the comment - there is no test for IBSS mode.
>
> Thanks,
>
Do you happen to know any code path that calls
__ieee80211_sta_join_ibss() without being in IBSS mode ?
next prev parent reply other threads:[~2012-12-04 8:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 21:21 [PATCH] mac80211: adapt slot time in IBSS mode Simon Wunderlich
2012-12-03 23:00 ` Julian Calaby
2012-12-04 8:08 ` Nicolas Cavallari [this message]
2012-12-04 22:07 ` Julian Calaby
2012-12-04 10:42 ` Simon Wunderlich
2012-12-04 14:54 ` 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=50BDAF67.4020106@lri.fr \
--to=nicolas.cavallari@lri.fr \
--cc=johannes@sipsolutions.net \
--cc=julian.calaby@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mathias.kretschmer@fokus.fraunhofer.de \
--cc=simon.wunderlich@s2003.tu-chemnitz.de \
--cc=siwu@hrz.tu-chemnitz.de \
/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;
as well as URLs for NNTP newsgroup(s).