From: Pat Erley <pat-lkml@erley.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Ben Greear <greearb@candelatech.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Why is wmm_param required for HT40- in mlme.c
Date: Sun, 30 Jan 2011 12:41:05 -0500 [thread overview]
Message-ID: <4D45A2B1.5050006@erley.org> (raw)
In-Reply-To: <1296380208.3616.0.camel@jlt3.sipsolutions.net>
On 01/30/11 04:36, Johannes Berg wrote:
> On Sat, 2011-01-29 at 21:38 -0800, Ben Greear wrote:
>> I tried to set up hostapd to do HT40-, but for whatever reason,
>> it's not sending any wmm_param options, so the stations will not
>> associate with HT40- enabled due to the check below.
>>
>> Is it really *reqired* that wmm_param exist to enable HT mode?
>>
>> From mlme.c:
>> if (elems.ht_info_elem&& elems.wmm_param&&
>> (sdata->local->hw.queues>= 4)&&
>> !(ifmgd->flags& IEEE80211_STA_DISABLE_11N))
>> changed |= ieee80211_enable_ht(sdata, elems.ht_info_elem,
>> cbss->bssid, ap_ht_cap_flags);
>
> 802.11n-2009 says it is required.
>
Having run into this same issue before, I considered adding some
default values for the case that wmm is not configured, but someone
tries to enable 802.11n, I just never decided where the best spot
for that would be. Should this sort of thing be a hostapd default
or somewhere in the cfg80211/mac80211 layer? I was thinking this
should be something that hostapd does.
As I see it, there are a few ways to prevent this problem:
1. Hostapd doesn't allow 802.11n to be enabled without wmm
2. Hostapd does allow 802.11n to be enabled without wmm, but uses
defaults
3. Hostapd doesn't care about this, and the kernel doesn't allow
802.11n without wmm
4. Hostapd doesn't care, but the kernel makes the correnctions
I believe 2 is the cleanest solution. So that the packets passed
from hostapd can make it through unmolested, and new hostapd versions
can work with older kernels. Any other solution I'm not thinking of?
Pat Erley
next prev parent reply other threads:[~2011-01-30 17:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-30 5:38 Why is wmm_param required for HT40- in mlme.c Ben Greear
2011-01-30 9:36 ` Johannes Berg
2011-01-30 17:34 ` Ben Greear
2011-01-31 11:03 ` Johannes Berg
2011-01-31 17:35 ` Ben Greear
2011-01-31 17:40 ` Johannes Berg
2011-01-30 17:41 ` Pat Erley [this message]
2011-01-31 11:28 ` Jouni Malinen
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=4D45A2B1.5050006@erley.org \
--to=pat-lkml@erley.org \
--cc=greearb@candelatech.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 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).