diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2010-01-12 03:42:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 14:20:58 -0500 |
commit | ab13315af97919fae0e014748105fdc2e30afb2d (patch) | |
tree | befa549272ecff20b2839bd6671e4cccbce448f9 /net/mac80211/cfg.c | |
parent | 2d46d7c121436f1dafe91b0a8d9b99e534cfa5f8 (diff) |
mac80211: add U-APSD client support
Add Unscheduled Automatic Power-Save Delivery (U-APSD) client support. The
idea is that the data frames from the client trigger AP to send the buffered
frames with ACs which have U-APSD enabled. This decreases latency and makes it
possible to save even more power.
Driver needs to use IEEE80211_HW_UAPSD to enable the feature. The current
implementation assumes that firmware takes care of the wakeup and
hardware needing IEEE80211_HW_PS_NULLFUNC_STACK is not yet supported.
Tested with wl1251 on a Nokia N900 and Cisco Aironet 1231G AP and running
various test traffic with ping.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index dc12e9466ffd..8286df5822d5 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1128,6 +1128,13 @@ static int ieee80211_set_txq_params(struct wiphy *wiphy, | |||
1128 | p.cw_max = params->cwmax; | 1128 | p.cw_max = params->cwmax; |
1129 | p.cw_min = params->cwmin; | 1129 | p.cw_min = params->cwmin; |
1130 | p.txop = params->txop; | 1130 | p.txop = params->txop; |
1131 | |||
1132 | /* | ||
1133 | * Setting tx queue params disables u-apsd because it's only | ||
1134 | * called in master mode. | ||
1135 | */ | ||
1136 | p.uapsd = false; | ||
1137 | |||
1131 | if (drv_conf_tx(local, params->queue, &p)) { | 1138 | if (drv_conf_tx(local, params->queue, &p)) { |
1132 | printk(KERN_DEBUG "%s: failed to set TX queue " | 1139 | printk(KERN_DEBUG "%s: failed to set TX queue " |
1133 | "parameters for queue %d\n", | 1140 | "parameters for queue %d\n", |