* [PATCH] wl12xx: set the skbuff priority for dummy packets
@ 2011-03-21 15:46 Luciano Coelho
2011-03-21 17:32 ` Luciano Coelho
0 siblings, 1 reply; 2+ messages in thread
From: Luciano Coelho @ 2011-03-21 15:46 UTC (permalink / raw)
To: linux-wireless; +Cc: Ido Yariv
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 | 2 ++
drivers/net/wireless/wl12xx/tx.c | 3 ---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 72e84a2..59e0f79 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -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;
diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index f3031cd..db9e47e 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -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 =
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wl12xx: set the skbuff priority for dummy packets
2011-03-21 15:46 [PATCH] wl12xx: set the skbuff priority for dummy packets Luciano Coelho
@ 2011-03-21 17:32 ` Luciano Coelho
0 siblings, 0 replies; 2+ messages in thread
From: Luciano Coelho @ 2011-03-21 17:32 UTC (permalink / raw)
To: linux-wireless; +Cc: Ido Yariv
On Mon, 2011-03-21 at 17:46 +0200, Luciano Coelho wrote:
> 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>
> ---
Applied.
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-21 17:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 15:46 [PATCH] wl12xx: set the skbuff priority for dummy packets Luciano Coelho
2011-03-21 17:32 ` Luciano Coelho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).