653-0031-rtl8xxxu-Add-simple-rtl8188eu_rf_on-routine.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 2024562ed45d905bee00aea923c218c493c09d27 Mon Sep 17 00:00:00 2001
  2. From: Jes Sorensen <Jes.Sorensen@redhat.com>
  3. Date: Fri, 22 Jul 2016 13:10:02 -0400
  4. Subject: [PATCH] rtl8xxxu: Add simple rtl8188eu_rf_on() routine
  5. It is not obvious from the vendor driver if we need more than this.
  6. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
  7. ---
  8. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 6 ++++++
  9. 1 file changed, 6 insertions(+)
  10. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  11. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
  12. @@ -1096,6 +1096,11 @@ exit:
  13. return ret;
  14. }
  15. +static void rtl8188e_enable_rf(struct rtl8xxxu_priv *priv)
  16. +{
  17. + rtl8xxxu_write8(priv, REG_TXPAUSE, 0x00);
  18. +}
  19. +
  20. static void rtl8188e_usb_quirks(struct rtl8xxxu_priv *priv)
  21. {
  22. u16 val16;
  23. @@ -1127,6 +1132,7 @@ struct rtl8xxxu_fileops rtl8188eu_fops =
  24. .phy_iq_calibrate = rtl8188eu_phy_iq_calibrate,
  25. .config_channel = rtl8188eu_config_channel,
  26. .parse_rx_desc = rtl8xxxu_parse_rxdesc16,
  27. + .enable_rf = rtl8188e_enable_rf,
  28. .usb_quirks = rtl8188e_usb_quirks,
  29. .update_rate_mask = rtl8xxxu_gen2_update_rate_mask,
  30. .report_connect = rtl8xxxu_gen2_report_connect,