From: Kalle Valo <kalle.valo@iki.fi>
To: linux-wireless@vger.kernel.org
Subject: [RFC PATCH v1 1/4] cfg80211: add U-APSD support
Date: Fri, 27 Nov 2009 16:07:56 +0200 [thread overview]
Message-ID: <20091127140756.2847.34880.stgit@tikku> (raw)
In-Reply-To: <20091127140700.2847.42426.stgit@tikku>
From: Kalle Valo <kalle.valo@nokia.com>
Experimental patch to add U-APSD support to cfg80211, most probably I'll
drop this because I don't see any use for this. If we want to control
U-APSD through cfg80211, this needs to be discussed more.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
---
include/linux/nl80211.h | 2 ++
include/net/cfg80211.h | 1 +
net/wireless/nl80211.c | 3 +++
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index da8ea2e..7bb020b 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1284,6 +1284,7 @@ enum nl80211_meshconf_params {
* @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form
* 2^n-1 in the range 1..32767]
* @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255]
+ * @NL80211_TXQ_ATTR_UAPSD: U-APSD enabled [0..1]
* @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
* @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number
*/
@@ -1294,6 +1295,7 @@ enum nl80211_txq_attr {
NL80211_TXQ_ATTR_CWMIN,
NL80211_TXQ_ATTR_CWMAX,
NL80211_TXQ_ATTR_AIFS,
+ NL80211_TXQ_ATTR_UAPSD,
/* keep last */
__NL80211_TXQ_ATTR_AFTER_LAST,
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 0884b9a..7be82d7 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -556,6 +556,7 @@ struct ieee80211_txq_params {
u16 cwmin;
u16 cwmax;
u8 aifs;
+ bool uapsd;
};
/* from net/wireless.h */
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index a602843..54c9941 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -670,6 +670,9 @@ static int parse_txq_params(struct nlattr *tb[],
txq_params->cwmax = nla_get_u16(tb[NL80211_TXQ_ATTR_CWMAX]);
txq_params->aifs = nla_get_u8(tb[NL80211_TXQ_ATTR_AIFS]);
+ if (tb[NL80211_TXQ_ATTR_UAPSD])
+ txq_params->uapsd = nla_get_u8(tb[NL80211_TXQ_ATTR_UAPSD]);
+
return 0;
}
next prev parent reply other threads:[~2009-11-27 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 14:07 [RFC PATCH v1 0/4] mac80211 client U-APSD support Kalle Valo
2009-11-27 14:07 ` Kalle Valo [this message]
2009-11-27 14:08 ` [RFC PATCH v1 2/4] mac80211: add " Kalle Valo
2009-11-27 14:08 ` [RFC PATCH v1 3/4] mac80211: add debugfs interface for U-APSD queue configuration Kalle Valo
2009-11-27 14:08 ` [RFC PATCH v1 4/4] wl1251: add U-APSD support Kalle Valo
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=20091127140756.2847.34880.stgit@tikku \
--to=kalle.valo@iki.fi \
--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