Skip to content

Commit

Permalink
wl12xx: set the skbuff priority for dummy packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luciano Coelho committed Apr 19, 2011
1 parent db674d2 commit 18b92ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions drivers/net/wireless/wl12xx/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 18b92ff

Please sign in to comment.