diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2015-02-24 10:23:01 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-03 10:07:05 -0500 |
commit | c8f0345586694a33f828bc6b177fb21eb1702325 (patch) | |
tree | 58f56edd0f8760d3c5b183ddbd3c0fdff1a23aa3 /drivers/net | |
parent | 0ff66cffde47de51c155ebdd2356403276c04cc4 (diff) |
rtlwifi: Improve handling of IPv6 packets
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/rtlwifi/base.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c index 1d4677460711..074f716020aa 100644 --- a/drivers/net/wireless/rtlwifi/base.c +++ b/drivers/net/wireless/rtlwifi/base.c | |||
@@ -1386,8 +1386,11 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx) | |||
1386 | } | 1386 | } |
1387 | 1387 | ||
1388 | return true; | 1388 | return true; |
1389 | } else if (0x86DD == ether_type) { | 1389 | } else if (ETH_P_IPV6 == ether_type) { |
1390 | return true; | 1390 | /* TODO: Handle any IPv6 cases that need special handling. |
1391 | * For now, always return false | ||
1392 | */ | ||
1393 | goto end; | ||
1391 | } | 1394 | } |
1392 | 1395 | ||
1393 | end: | 1396 | end: |