wl12xx: set the actual tid instead of the ac
authorEliad Peller <eliad@wizery.com>
Wed, 16 Mar 2011 21:03:54 +0000 (23:03 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:08 +0000 (16:49 +0300)
commitdb674d249c1fa20fd6731048f41646b3a2e8bdf5
tree6aea27563a79aaa33cfb7c2165543e3299d09a34
parentf9f774c17e19da6f98bd7b57527f55d0ec920fce
wl12xx: set the actual tid instead of the ac

When passing a tx frame, the driver incorrectly set desc->tid
with the ac instead of the actual tid.

It has some serious implications when using 802.11n + QoS,
as the fw starts a BlockAck with the wrong tid (which finally
cause beacon loss and disconnection / some fw crash)

Fix it by using the actual tid stored in skb->priority.

Reported-by: Shahar Levi <shahar_levi@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/tx.c