653-0038-rtl8xxxu-properly-detect-RTL8188EU-devices.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From 36c071e30dc5759be3e53ac93459c24fb64d41c3 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
  3. Date: Fri, 29 Jul 2016 18:22:37 +0200
  4. Subject: [PATCH] rtl8xxxu: properly detect RTL8188EU devices
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The assumption that all RTL8188EU have chip cut >= C is wrong.
  9. However, RTL8188EU devices can be easily differentiated from RTL8188CU devices
  10. relying on TX report capbility.
  11. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  12. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
  13. ---
  14. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
  17. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
  18. @@ -1683,7 +1683,7 @@ static int rtl8xxxu_identify_chip(struct
  19. }
  20. priv->has_wifi = 1;
  21. } else {
  22. - if (priv->chip_cut >= 2) {
  23. + if (priv->fops->has_tx_report) {
  24. sprintf(priv->chip_name, "8188EU");
  25. priv->rf_paths = 1;
  26. priv->rx_paths = 1;