wl12xx: avoid starving the system hlid
authorArik Nemtsov <arik@wizery.com>
Mon, 27 Feb 2012 22:41:31 +0000 (00:41 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 28 Feb 2012 11:25:09 +0000 (13:25 +0200)
commit49c9cd26445aa8bc8348c384c943b758c57c47a9
treefe65c0be371e34bb08d45a3ddebf51e794e7da48
parent6246ca003f2560e30b9696757efc271284b809f6
wl12xx: avoid starving the system hlid

Re-factor the Tx scheduler so that the system_hlid is taken into account
before restarting an iteration over the wlvifs. Previously this
hlid had a lower priority and would starve if some wlvif had many
packets.
In addition avoid iterating over wlvifs past last_wlvif when performing
the a second pass. If we had packets in those wlvifs they would have
been found earlier.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/tx.c