rtlwifi: Improve handling of IPv6 packets
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 24 Feb 2015 15:23:01 +0000 (09:23 -0600)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 17 Apr 2015 00:11:41 +0000 (20:11 -0400)
commit240e177bb402ba3d969bf75c8096e8a0cf654c39
tree8581db29349477dac5d7b4e8633b40dcf7b5d0bc
parent59bbaa453dd58db66cd0bb9ca309aa36f4567778
rtlwifi: Improve handling of IPv6 packets

[ Upstream commit c8f0345586694a33f828bc6b177fb21eb1702325 ]

Routine rtl_is_special_data() is supposed to identify packets that need to
use a low bit rate so that the probability of successful transmission is
high. The current version has a bug that causes all IPv6 packets to be
labelled as special, with a corresponding low rate of transmission. A
complete fix will be quite intrusive, but until that is available, all
IPv6 packets are identified as regular.

This patch also removes a magic number.

Reported-and-tested-by: Alan Fisher <acf@unixcube.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [3.18+]
Cc: Alan Fisher <acf@unixcube.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/wireless/rtlwifi/base.c