]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: update adapter->bss_prio_tbl[j].bss_prio_cur correctly
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 11 Sep 2012 01:30:44 +0000 (18:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Sep 2012 19:31:53 +0000 (15:31 -0400)
commit3d24996b77c384aeeedb54d26940fb1f1f378428
tree6314bb2afabdfcd7ce792fb7687a5a33f5bbd486
parente7eeea2faec3260c6599dbea6330a906b3e309a1
mwifiex: update adapter->bss_prio_tbl[j].bss_prio_cur correctly

"adapter->bss_prio_tbl[j].bss_prio_head" points to linked list of
interfaces with priority 'j'. "bss_prio_tbl[j].bss_prio_cur" is
supposed to point to next interface every time the routine for
dequeuing the packet is called. This ensures that each interface
gets fair chance.

Currently we have AP and station interfaces with priority '0'.
Therefore "adapter->bss_prio_tbl[0].bss_prio_cur" should
alternately point to AP and station nodes. Since "bss_prio_cur"
is not correctly updated, for each packet picked for AP, two
packets are picked for station interface.

This patch fixes the problem by correctly updating "bss_prio_cur".

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/wmm.c