summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorAndreas Fenkart2013-04-19 01:33:45 +0200
committerJohn W. Linville2013-04-23 21:18:40 +0200
commit2e23731954d3641a418455e8e0c37c9b8aa7f567 (patch)
tree661b631bebb8b89c6d8d207e3d5f722fe31a4ce9 /drivers/net/wireless/mwifiex/scan.c
parentbrcmfmac: add credit borrowing mechanism (diff)
downloadkernel-qcow2-linux-2e23731954d3641a418455e8e0c37c9b8aa7f567.tar.gz
kernel-qcow2-linux-2e23731954d3641a418455e8e0c37c9b8aa7f567.tar.xz
kernel-qcow2-linux-2e23731954d3641a418455e8e0c37c9b8aa7f567.zip
mwifiex: replace ra_list_curr by list rotation.
After a packet is successfully transmitted, ra list is rotated, so the ra next to the one transmitted, will be the first in the list. This way we pick the ra' in a round robin fashion. This significantly simplifies iteration in mwifiex_wmm_get_highest_priolist_ptr to a call to list_for_each_entry. List rotation is done via list_move, where the head itself is temporarily removed and then re-inserted after the item just transferred. 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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
0 files changed, 0 insertions, 0 deletions