653-0010-rtl8xxxu-Add-reserved-page-init-parameters-for-8188e.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 2bfba2657e3f99c6693ea30b60af4eb1d3e3950c Mon Sep 17 00:00:00 2001
  2. From: Jes Sorensen <Jes.Sorensen@redhat.com>
  3. Date: Wed, 29 Jun 2016 12:02:18 -0400
  4. Subject: [PATCH] rtl8xxxu: Add reserved page init parameters for 8188e
  5. Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
  6. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
  7. ---
  8. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 6 ++++++
  9. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 4 ++++
  10. 2 files changed, 10 insertions(+)
  11. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
  12. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
  13. @@ -43,6 +43,7 @@
  14. #define REALTEK_USB_CMD_IDX 0x00
  15. #define TX_TOTAL_PAGE_NUM 0xf8
  16. +#define TX_TOTAL_PAGE_NUM_8188E 0xa8
  17. #define TX_TOTAL_PAGE_NUM_8192E 0xf3
  18. #define TX_TOTAL_PAGE_NUM_8723B 0xf7
  19. /* (HPQ + LPQ + NPQ + PUBQ) = TX_TOTAL_PAGE_NUM */
  20. @@ -51,6 +52,11 @@
  21. #define TX_PAGE_NUM_LO_PQ 0x02
  22. #define TX_PAGE_NUM_NORM_PQ 0x02
  23. +#define TX_PAGE_NUM_PUBQ_8188E 0x47
  24. +#define TX_PAGE_NUM_HI_PQ_8188E 0x29
  25. +#define TX_PAGE_NUM_LO_PQ_8188E 0x1c
  26. +#define TX_PAGE_NUM_NORM_PQ_8188E 0x1c
  27. +
  28. #define TX_PAGE_NUM_PUBQ_8192E 0xe7
  29. #define TX_PAGE_NUM_HI_PQ_8192E 0x08
  30. #define TX_PAGE_NUM_LO_PQ_8192E 0x0c
  31. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  32. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  33. @@ -225,4 +225,8 @@ struct rtl8xxxu_fileops rtl8188eu_fops =
  34. .power_on = rtl8188eu_power_on,
  35. .reset_8051 = rtl8xxxu_reset_8051,
  36. .usb_quirks = rtl8188e_usb_quirks,
  37. + .total_page_num = TX_TOTAL_PAGE_NUM_8188E,
  38. + .page_num_hi = TX_PAGE_NUM_HI_PQ_8188E,
  39. + .page_num_lo = TX_PAGE_NUM_LO_PQ_8188E,
  40. + .page_num_norm = TX_PAGE_NUM_NORM_PQ_8188E,
  41. };