aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_tx.h
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-11-30 03:18:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:55:55 -0500
commit86dff7a7955f1e14c1f2c142312462fae70ea7e4 (patch)
tree04b4401a2c8467dcbf00e219c2b222ff45cf20b8 /drivers/net/wireless/wl12xx/wl1251_tx.h
parentcdd1e9a91ea55594cbcc9847dbb9392e341cbefd (diff)
wl1251: implement acx_ac_cfg to configure hardware queues
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_tx.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_tx.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_tx.h b/drivers/net/wireless/wl12xx/wl1251_tx.h
index 7c1c1665c810..b7bead8b0aeb 100644
--- a/drivers/net/wireless/wl12xx/wl1251_tx.h
+++ b/drivers/net/wireless/wl12xx/wl1251_tx.h
@@ -26,6 +26,7 @@
26#define __WL1251_TX_H__ 26#define __WL1251_TX_H__
27 27
28#include <linux/bitops.h> 28#include <linux/bitops.h>
29#include "wl1251_acx.h"
29 30
30/* 31/*
31 * 32 *
@@ -209,6 +210,25 @@ struct tx_result {
209 u8 done_2; 210 u8 done_2;
210} __attribute__ ((packed)); 211} __attribute__ ((packed));
211 212
213static inline int wl1251_tx_get_queue(int queue)
214{
215 /* FIXME: use best effort until WMM is enabled */
216 return QOS_AC_BE;
217
218 switch (queue) {
219 case 0:
220 return QOS_AC_VO;
221 case 1:
222 return QOS_AC_VI;
223 case 2:
224 return QOS_AC_BE;
225 case 3:
226 return QOS_AC_BK;
227 default:
228 return QOS_AC_BE;
229 }
230}
231
212void wl1251_tx_work(struct work_struct *work); 232void wl1251_tx_work(struct work_struct *work);
213void wl1251_tx_complete(struct wl1251 *wl); 233void wl1251_tx_complete(struct wl1251 *wl);
214void wl1251_tx_flush(struct wl1251 *wl); 234void wl1251_tx_flush(struct wl1251 *wl);