aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-11-30 03:18:33 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:55:59 -0500
commit49e1b9faed736b20ad9a785638919341b567a595 (patch)
tree9787d727333f09186536daab5e64dace64846f20 /drivers/net/wireless
parent27336f1c0cd68fb9ae45493321f0d6980144230e (diff)
wl1251: implement WMM
Now that necessary commands for WMM are implemented, implement queue handling for WMM. But WMM is not enabled yet, only one queue is used. 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')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_main.c2
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_tx.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c
index 74770ada37de..563c84fc575c 100644
--- a/drivers/net/wireless/wl12xx/wl1251_main.c
+++ b/drivers/net/wireless/wl12xx/wl1251_main.c
@@ -1306,7 +1306,7 @@ static int wl1251_op_conf_tx(struct ieee80211_hw *hw, u16 queue,
1306 goto out_sleep; 1306 goto out_sleep;
1307 1307
1308 ret = wl1251_acx_tid_cfg(wl, wl1251_tx_get_queue(queue), 1308 ret = wl1251_acx_tid_cfg(wl, wl1251_tx_get_queue(queue),
1309 CHANNEL_TYPE_DCF, 1309 CHANNEL_TYPE_EDCF,
1310 wl1251_tx_get_queue(queue), 1310 wl1251_tx_get_queue(queue),
1311 WL1251_ACX_PS_SCHEME_LEGACY, 1311 WL1251_ACX_PS_SCHEME_LEGACY,
1312 WL1251_ACX_ACK_POLICY_LEGACY); 1312 WL1251_ACX_ACK_POLICY_LEGACY);
diff --git a/drivers/net/wireless/wl12xx/wl1251_tx.c b/drivers/net/wireless/wl12xx/wl1251_tx.c
index f85970615849..faa23efd05a1 100644
--- a/drivers/net/wireless/wl12xx/wl1251_tx.c
+++ b/drivers/net/wireless/wl12xx/wl1251_tx.c
@@ -167,8 +167,7 @@ static int wl1251_tx_fill_hdr(struct wl1251 *wl, struct sk_buff *skb,
167 tx_hdr->expiry_time = cpu_to_le32(1 << 16); 167 tx_hdr->expiry_time = cpu_to_le32(1 << 16);
168 tx_hdr->id = id; 168 tx_hdr->id = id;
169 169
170 /* FIXME: how to get the correct queue id? */ 170 tx_hdr->xmit_queue = wl1251_tx_get_queue(skb_get_queue_mapping(skb));
171 tx_hdr->xmit_queue = 0;
172 171
173 wl1251_tx_control(tx_hdr, control, fc); 172 wl1251_tx_control(tx_hdr, control, fc);
174 wl1251_tx_frag_block_num(tx_hdr); 173 wl1251_tx_frag_block_num(tx_hdr);
@@ -237,8 +236,9 @@ static int wl1251_tx_send_packet(struct wl1251 *wl, struct sk_buff *skb,
237 236
238 wl1251_mem_write(wl, addr, skb->data, len); 237 wl1251_mem_write(wl, addr, skb->data, len);
239 238
240 wl1251_debug(DEBUG_TX, "tx id %u skb 0x%p payload %u rate 0x%x", 239 wl1251_debug(DEBUG_TX, "tx id %u skb 0x%p payload %u rate 0x%x "
241 tx_hdr->id, skb, tx_hdr->length, tx_hdr->rate); 240 "queue %d", tx_hdr->id, skb, tx_hdr->length,
241 tx_hdr->rate, tx_hdr->xmit_queue);
242 242
243 return 0; 243 return 0;
244} 244}