mwifiex: do not decrement rx_pending count twice
authorAvinash Patil <patila@marvell.com>
Mon, 29 Sep 2014 16:14:14 +0000 (21:44 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Sep 2014 17:17:46 +0000 (13:17 -0400)
commitb43a0d9d01dbe498632e83632a2409a575fcee23
treedac8a24a778388ba11465ce91fab73131c2e4b20
parentf73e557bca0609d0f997414a5b1403e3fadd5dea
mwifiex: do not decrement rx_pending count twice

This patch fixes an issue with rx processing function where we were
decrementing rx_pending count twice.

Patch also queues correct main_work item when rx_pending count reaches
low watermark.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/main.c