653-0012-rtl8xxxu-Add-trxff_boundary-for-8188e.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From bc55b854b404de79353547013a8f1ae31855f7c5 Mon Sep 17 00:00:00 2001
  2. From: Jes Sorensen <Jes.Sorensen@redhat.com>
  3. Date: Wed, 29 Jun 2016 12:08:31 -0400
  4. Subject: [PATCH] rtl8xxxu: Add trxff_boundary for 8188e
  5. The 8188e presumably has a 10K buffer, but leave space for TX report
  6. or WOL pattern.
  7. Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
  8. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
  9. ---
  10. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 5 +++++
  11. 1 file changed, 5 insertions(+)
  12. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  13. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  14. @@ -225,6 +225,11 @@ struct rtl8xxxu_fileops rtl8188eu_fops =
  15. .power_on = rtl8188eu_power_on,
  16. .reset_8051 = rtl8xxxu_reset_8051,
  17. .usb_quirks = rtl8188e_usb_quirks,
  18. + /*
  19. + * Use 9K for 8188e normal chip
  20. + * Max RX buffer = 10K - max(TxReportSize(64*8), WOLPattern(16*24))
  21. + */
  22. + .trxff_boundary = 0x23ff,
  23. .total_page_num = TX_TOTAL_PAGE_NUM_8188E,
  24. .page_num_hi = TX_PAGE_NUM_HI_PQ_8188E,
  25. .page_num_lo = TX_PAGE_NUM_LO_PQ_8188E,