summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_main.c
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-11-30 10:18:27 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:55:57 -0500
commit27336f1c0cd68fb9ae45493321f0d6980144230e (patch)
treebbbf451f951c26f543ebeb0e10d076892bb6bee8 /drivers/net/wireless/wl12xx/wl1251_main.c
parent86dff7a7955f1e14c1f2c142312462fae70ea7e4 (diff)
downloadblackbird-op-linux-27336f1c0cd68fb9ae45493321f0d6980144230e.tar.gz
blackbird-op-linux-27336f1c0cd68fb9ae45493321f0d6980144230e.zip
wl1251: implement wl1251_acx_tid_cfg()
Needed for WMM. Signed-off-by: Kalle Valo <kalle.valo@nokia.com> Reviewed-by: Janne Ylalehto <janne.ylalehto@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c
index c1c7cb5aea2b..74770ada37de 100644
--- a/drivers/net/wireless/wl12xx/wl1251_main.c
+++ b/drivers/net/wireless/wl12xx/wl1251_main.c
@@ -1302,7 +1302,18 @@ static int wl1251_op_conf_tx(struct ieee80211_hw *hw, u16 queue,
ret = wl1251_acx_ac_cfg(wl, wl1251_tx_get_queue(queue),
params->cw_min, params->cw_max,
params->aifs, params->txop);
+ if (ret < 0)
+ goto out_sleep;
+
+ ret = wl1251_acx_tid_cfg(wl, wl1251_tx_get_queue(queue),
+ CHANNEL_TYPE_DCF,
+ wl1251_tx_get_queue(queue),
+ WL1251_ACX_PS_SCHEME_LEGACY,
+ WL1251_ACX_ACK_POLICY_LEGACY);
+ if (ret < 0)
+ goto out_sleep;
+out_sleep:
wl1251_ps_elp_sleep(wl);
out:
OpenPOWER on IntegriCloud