]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: rework round robin scheduling of bss nodes.
authorAndreas Fenkart <[andreas.fenkart@streamunlimited.com]>
Thu, 18 Apr 2013 23:34:12 +0000 (16:34 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 23 Apr 2013 19:18:40 +0000 (15:18 -0400)
commita94fa40f58bef083d547a2fa869577c9baf9b9c2
tree4469dfebe8b2ed700175ecba692a03ab581cf548
parentec27f14e0511f8edce60b3445ba3164758faa8c7
mwifiex: rework round robin scheduling of bss nodes.

Rotate bss prio list, so the bss next to the one served, will come first
in the list of bss' with equal priority. This way we pick bss nodes in a
round robin fashion. Using list rotation instead of a cur ptr simplifies
iteration to calling list_for_each_entry. List rotation is done via
list_move, where the head itself is temporarily removed and then
re-inserted after the bss just served.

Signed-off-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n_aggr.c
drivers/net/wireless/mwifiex/init.c
drivers/net/wireless/mwifiex/wmm.c