653-0051-rtl8xxxu-Early-enable-of-WEP-TKIP-security-on-8188eu.patch 960 B

12345678910111213141516171819202122232425
  1. From 845f14c57fd50ec7e94f59bb1b5ad0cd1ecdbdd1 Mon Sep 17 00:00:00 2001
  2. From: Jes Sorensen <Jes.Sorensen@redhat.com>
  3. Date: Tue, 30 Aug 2016 15:47:05 -0400
  4. Subject: [PATCH] rtl8xxxu: Early enable of WEP/TKIP security on 8188eu
  5. This matches action taken in the vendor driver, however it is unclear
  6. why this is done.
  7. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
  8. ---
  9. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  12. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  13. @@ -1394,6 +1394,9 @@ static void rtl8188e_usb_quirks(struct r
  14. val32 = rtl8xxxu_read32(priv, REG_TXDMA_OFFSET_CHK);
  15. val32 |= TXDMA_OFFSET_DROP_DATA_EN;
  16. rtl8xxxu_write32(priv, REG_TXDMA_OFFSET_CHK, val32);
  17. +
  18. + /* Pre-TX enable WEP/TKIP security */
  19. + rtl8xxxu_write8(priv, REG_EARLY_MODE_CONTROL_8188E + 3, 0x01);
  20. }
  21. struct rtl8xxxu_fileops rtl8188eu_fops = {