wl12xx: set the skbuff priority for dummy packets
authorLuciano Coelho <coelho@ti.com>
Mon, 21 Mar 2011 14:35:21 +0000 (16:35 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:09 +0000 (16:49 +0300)
The firmware requires dummy packets to be sent using TID 7
(WL1271_TID_MGMT).  Instead of hardcoding it in the tx_fill_hdr()
function, set it when creating the packet itself.

This requires Eliad's fix to set the actual TID in the TX descriptor.

Cc: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/tx.c

index 72e84a2..59e0f79 100644 (file)
@@ -1243,6 +1243,8 @@ int wl1271_tx_dummy_packet(struct wl1271 *wl)
        memset(skb->data, 0, TX_DUMMY_PACKET_SIZE);
 
        skb->pkt_type = TX_PKT_TYPE_DUMMY_REQ;
+       /* Dummy packets require the TID to be management */
+       skb->priority = WL1271_TID_MGMT;
        /* CONF_TX_AC_VO */
        skb->queue_mapping = 0;
 
index f3031cd..db9e47e 100644 (file)
@@ -235,9 +235,6 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct sk_buff *skb,
                           TX_HW_ATTR_SESSION_COUNTER;
 
                tx_attr |= TX_HW_ATTR_TX_DUMMY_REQ;
-
-               /* Dummy packets require the TID to be management */
-               desc->tid = WL1271_TID_MGMT;
        } else {
                /* configure the tx attributes */
                tx_attr =