OSDN Git Service

rtlwifi: rtl8192ee: Fix problems with calculating free space in FIFO
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 3 Feb 2015 17:15:18 +0000 (11:15 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Feb 2015 06:36:08 +0000 (08:36 +0200)
commit6d4beca3775222884e1ee9d48ef586c438c3dfa1
tree6c5fec1f68d1b68b9bc02c8ae4e0d77c8065a345
parentd0311314d00298f83aa5450a1d4a92889e7cc2ea
rtlwifi: rtl8192ee: Fix problems with calculating free space in FIFO

This driver utilizes a FIFO buffer for RX descriptors. There are four places
in the code where it calculates the number of free slots. Several of those
locations do the calculation incorrectly. To fix these and to prevent future
mistakes, a common inline routine is created.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [V3.18]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/pci.h
drivers/net/wireless/rtlwifi/rtl8192ee/trx.c