]> git.ipfire.org Git - people/ms/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:19 +0000 (14:57 -0800)
commit7ff4cadbeba30a716a7ea1415a86584b188fcd3e
treec487a0634dd7040944d9e0fb96c1837f857d7a29
parentc908ec52b0de8b4fdaf8ad05ac27da7cf579e586
rtlwifi: rtl8192ee: Fix problems with calculating free space in FIFO

commit 6d4beca3775222884e1ee9d48ef586c438c3dfa1 upstream.

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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rtlwifi/pci.h
drivers/net/wireless/rtlwifi/rtl8192ee/trx.c