From: Johannes Berg <johannes@sipsolutions.net>
To: Dmitry Tarnyagin <abi.dmitryt@gmail.com>
Cc: "linux-wireless.vger.kernel.org" <linux-wireless@vger.kernel.org>,
Bartosz MARKOWSKI <bartosz.markowski@tieto.com>,
Janusz DZIEDZIC <janusz.dziedzic@tieto.com>
Subject: Re: [RFC 06/07] compat-wireless: UAPSD configuration in STA mode
Date: Wed, 12 Oct 2011 10:25:55 +0200 [thread overview]
Message-ID: <1318407955.3933.23.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <op.v27ru00wya27un@edmitar> (sfid-20111012_030257_788340_E3ADB568)
On Wed, 2011-10-12 at 03:02 +0200, Dmitry Tarnyagin wrote:
> From: Janusz Dziedzic <janusz.dziedzic@tieto.com>
> Date: Wed, 3 Aug 2011 09:46:05 +0200
>
> This patch adds UAPSD queues configuration as a param to assoc request.
> With the patch it's possible to configure UAPSD from user space.
>
> Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
> ---
> include/linux/nl80211.h | 2 ++
> include/net/cfg80211.h | 1 +
> net/mac80211/main.c | 3 ++-
> net/mac80211/mlme.c | 2 ++
> net/wireless/core.h | 6 ++++--
> net/wireless/mlme.c | 10 +++++++---
> net/wireless/nl80211.c | 7 ++++++-
> net/wireless/sme.c | 2 +-
> 8 files changed, 25 insertions(+), 8 deletions(-)
This is a rare case where *maybe* it's OK to do both mac80211 and
cfg80211 in one patch, but I haven't seen much evidence from all of you
that you really understand the separation, so I'd prefer if you split it
up and explained the changes separately.
> +++ b/include/net/cfg80211.h
> @@ -1050,6 +1050,7 @@ struct cfg80211_assoc_request {
> size_t ie_len;
> struct cfg80211_crypto_settings crypto;
> bool use_mfp;
> + int uapsd;
int? explain. also you're obviously missing documentation that would
have explained this.
> - local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES;
> + /* Disable all UAPSD AC by default */
> + local->uapsd_queues = 0;
You should obviously then remove the default constant, or better yet
just set it to 0. Also _that_ specific change needs to be a separate
change since it modifies existing behaviour.
> + if (info->attrs[NL80211_ATTR_UAPSD])
> + uapsd = nla_get_u32(info->attrs[NL80211_ATTR_UAPSD]);
clearly missing validation.
> +++ b/net/wireless/sme.c
> @@ -190,7 +190,7 @@ static int cfg80211_conn_do_work(struct wireless_dev
> *wdev)
> prev_bssid,
> params->ssid, params->ssid_len,
> params->ie, params->ie_len,
> - false, ¶ms->crypto);
> + false, ¶ms->crypto, -1);
> if (err)
> __cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid,
> NULL, 0,
Really? Why should this not be able to do uapsd with the same way?
johannes
prev parent reply other threads:[~2011-10-12 8:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 1:02 [RFC 06/07] compat-wireless: UAPSD configuration in STA mode Dmitry Tarnyagin
2011-10-12 3:19 ` Julian Calaby
2011-10-12 8:25 ` Johannes Berg [this message]
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=1318407955.3933.23.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=abi.dmitryt@gmail.com \
--cc=bartosz.markowski@tieto.com \
--cc=janusz.dziedzic@tieto.com \
--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).