Skip to contentSkip to conversation

package/rtl8188eu: remove wrong description in Config.in

PATCH In review Giulio Benetti 2 participants 7 messages Oct 19, 2022 – Nov 17, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/rtl8188eu: remove wrong description in Config.in

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

---
V1->V2:
* improve Config.in description as pointed by Luca Ceresoli

---
 package/rtl8188eu/Config.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
package/rtl8188eu/Config.in +4 -3
index 76d9085297..2fab1fd5c0 100644
@@ -4,9 +4,10 @@ config BR2_PACKAGE_RTL8188EU
 	depends on BR2_LINUX_KERNEL
 	help
 	  A standalone driver for the RTL8188EU USB Wi-Fi adapter.
-	  This is needed only for Linux kernels before 3.12.
-	  Since 3.12, there is a (staging) driver in mainline, with a
-	  similar codebase.
+	  This rtl8188eu driver is not the same as the one in mainline
+	  Linux that still has pending work to be done that in this
+	  driver is done, check:
+	  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
 
 	  Make sure your target kernel has the CONFIG_WIRELESS_EXT
 	  config option enabled.
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by Luca Ceresoli on v2 1/1
#1 lore raw

Hi Giulio,

Quoted 11 lines · On Wed, 19 Oct 2022 15:48:23 +0200 Giulio Benetti…

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

Thanks!

Signature · 7 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Giulio Benetti
Quoted 23 lines · On Wed, 19 Oct 2022 15:48:23 +0200 Giulio Benetti…

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

---
V1->V2:
* improve Config.in description as pointed by Luca Ceresoli

---
 package/rtl8188eu/Config.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
package/rtl8188eu/Config.in +0 -0
index 76d9085297..2fab1fd5c0 100644

package/rtl8188eu/Config.in config BR2_PACKAGE_RTL8188EU · line 10

Quoted 10 lines
package/rtl8188eu/Config.in +4 -3
@@ -4,9 +4,10 @@ config BR2_PACKAGE_RTL8188EU
 	depends on BR2_LINUX_KERNEL
 	help
 	  A standalone driver for the RTL8188EU USB Wi-Fi adapter.
-	  This is needed only for Linux kernels before 3.12.
-	  Since 3.12, there is a (staging) driver in mainline, with a
-	  similar codebase.
+	  This rtl8188eu driver is not the same as the one in mainline
+	  Linux that still has pending work to be done that in this
+	  driver is done, check:
+	  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO

I don't see any thing in this TODO that explains why the out-of-tree driver is better than the mainline driver.

The out-of-tree driver has been integrated into drivers/staging/, and this TODO file lists what should be improved in the driver so that it can be graduated to move outside of drivers/staging/ into the proper drivers/net/wireless/ location.

I don't see anything in this TODO that indicates that the out-of-tree driver has "more features" than the mainline driver, so to me the Config.in help text still makes sense.

Could you give some more details?

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hi Thomas, Luca,

Quoted 45 lines · Thomas Petazzoni via buildroot
Quoted 23 lines · On Wed, 19 Oct 2022 15:48:23 +0200 Giulio Benetti…

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

---
V1->V2:
* improve Config.in description as pointed by Luca Ceresoli

---
  package/rtl8188eu/Config.in | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
package/rtl8188eu/Config.in +0 -0
index 76d9085297..2fab1fd5c0 100644

package/rtl8188eu/Config.in config BR2_PACKAGE_RTL8188EU · line 10

Quoted 10 lines
package/rtl8188eu/Config.in +4 -3
@@ -4,9 +4,10 @@ config BR2_PACKAGE_RTL8188EU
  	depends on BR2_LINUX_KERNEL
  	help
  	  A standalone driver for the RTL8188EU USB Wi-Fi adapter.
-	  This is needed only for Linux kernels before 3.12.
-	  Since 3.12, there is a (staging) driver in mainline, with a
-	  similar codebase.
+	  This rtl8188eu driver is not the same as the one in mainline
+	  Linux that still has pending work to be done that in this
+	  driver is done, check:
+	  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO

I don't see any thing in this TODO that explains why the out-of-tree driver is better than the mainline driver.

The out-of-tree driver has been integrated into drivers/staging/, and this TODO file lists what should be improved in the driver so that it can be graduated to move outside of drivers/staging/ into the proper drivers/net/wireless/ location.

Quoted 5 lines

I don't see anything in this TODO that indicates that the out-of-tree driver has "more features" than the mainline driver, so to me the Config.in help text still makes sense.

Could you give some more details?

The TODO file[0] is outdated because it states that:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
are still pending, but it's true not because if we check the Kconfig[1] we find 'depends on CFG80211' and LIB80211. Also if we check for ieee80211_*() callse int drivers/staging/r8188eu folder we find a lot of calls. So I think this module is only a copy of the Linux driver that can work as specified in the actual help(with Linux version before 3.12.

Does it maybe make sense to add in the help section:

```
If using Linux 3.12+ it's recommended to use Linux driver
```

?
Or we can rename the package name with the suffix -legacy?

Regarding the other wifi drivers I've checked and they are not supported in Linux, nor staging nor net/wireless, except rtl8723bu[2], so maybe it makes sense to drop rtl8723bu package.

What do you think?

[0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/Kconfig
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c#n238

Thank you
Best regards

Signature · 6 lines
Giulio Benetti
CEO/CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 69 lines · Giulio Benetti

Hi Thomas, Luca,

Quoted 46 lines · Thomas Petazzoni via buildroot
Quoted 26 lines · On Wed, 19 Oct 2022 15:48:23 +0200 Giulio Benetti…

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

---
V1->V2:
* improve Config.in description as pointed by Luca Ceresoli
---
  package/rtl8188eu/Config.in | 7 ++++---

  1 file changed, 4 insertions(+), 3 deletions(-)
package/rtl8188eu/Config.in +0 -0
index 76d9085297..2fab1fd5c0 100644
@@ -4,9 +4,10 @@ config BR2_PACKAGE_RTL8188EU

      depends on BR2_LINUX_KERNEL
      help
        A standalone driver for the RTL8188EU USB Wi-Fi adapter.

Quoted 8 lines

-      This is needed only for Linux kernels before 3.12. -      Since 3.12, there is a (staging) driver in mainline, with a -      similar codebase.
+      This rtl8188eu driver is not the same as the one in mainline +      Linux that still has pending work to be done that in this +      driver is done, check:
+
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO

I don't see any thing in this TODO that explains why the out-of-tree driver is better than the mainline driver.

The out-of-tree driver has been integrated into drivers/staging/, and this TODO file lists what should be improved in the driver so that it can be graduated to move outside of drivers/staging/ into the proper drivers/net/wireless/ location.

Quoted 5 lines

I don't see anything in this TODO that indicates that the out-of-tree driver has "more features" than the mainline driver, so to me the Config.in help text still makes sense.

Could you give some more details?

The TODO file[0] is outdated because it states that:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
are still pending, but it's true not because if we check the Kconfig[1] we find 'depends on CFG80211' and LIB80211. Also if we check for ieee80211_*() callse int drivers/staging/r8188eu folder we find a lot of calls. So I think this module is only a copy of the Linux driver that can work as specified in the actual help(with Linux version before 3.12.

Does it maybe make sense to add in the help section:

```
If using Linux 3.12+ it's recommended to use Linux driver
```
Quoted 6 lines

?
Or we can rename the package name with the suffix -legacy?

Regarding the other wifi drivers I've checked and they are not supported in Linux, nor staging nor net/wireless, except rtl8723bu[2], so maybe it makes sense to drop rtl8723bu package.

Pardon, not drop the package, but to improve help section pointing that is for Linux version(to check when Linux driver has been added) and encourage the use of Linux driver otherwise.

Best regards

Signature · 2 lines
Giulio Benetti
CEO/CTO@Benetti Engineering sas
Quoted 9 lines

What do you think?

[0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/Kconfig
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c#n238

Thank you
Best regards

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

Hi Giulio,

Quoted 56 lines · On Wed, 16 Nov 2022 02:15:57 +0100 Giulio Benetti…
Quoted 55 lines · Giulio Benetti

Hi Thomas, Luca,

Quoted 51 lines · Thomas Petazzoni via buildroot
Quoted 26 lines · On Wed, 19 Oct 2022 15:48:23 +0200 Giulio Benetti…

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

---
V1->V2:
* improve Config.in description as pointed by Luca Ceresoli
---
  package/rtl8188eu/Config.in | 7 ++++---

  1 file changed, 4 insertions(+), 3 deletions(-)
package/rtl8188eu/Config.in +0 -0
index 76d9085297..2fab1fd5c0 100644
@@ -4,9 +4,10 @@ config BR2_PACKAGE_RTL8188EU

      depends on BR2_LINUX_KERNEL
      help
        A standalone driver for the RTL8188EU USB Wi-Fi adapter.

Quoted 8 lines

-      This is needed only for Linux kernels before 3.12. -      Since 3.12, there is a (staging) driver in mainline, with a -      similar codebase.
+      This rtl8188eu driver is not the same as the one in mainline +      Linux that still has pending work to be done that in this +      driver is done, check:
+
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO

I don't see any thing in this TODO that explains why the out-of-tree driver is better than the mainline driver.

The out-of-tree driver has been integrated into drivers/staging/, and this TODO file lists what should be improved in the driver so that it can be graduated to move outside of drivers/staging/ into the proper drivers/net/wireless/ location.

I don't see anything in this TODO that indicates that the out-of-tree driver has "more features" than the mainline driver, so to me the Config.in help text still makes sense.

Could you give some more details?

Quoted 9 lines
Quoted 9 lines

The TODO file[0] is outdated because it states that:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
are still pending, but it's true not because if we check the Kconfig[1] we find 'depends on CFG80211' and LIB80211. Also if we check for ieee80211_*() callse int drivers/staging/r8188eu folder we find a lot of calls. So I think this module is only a copy of the Linux driver that can work as specified in the actual help(with Linux version before 3.12.

I haven't checked myself, but if you think the transition to cfg80211 and lib80211 is completed in mainline, you can send a patch to have the TODO updated in upstream Linux. That would reduce confusion.

Quoted 4 lines
Quoted 4 lines

Does it maybe make sense to add in the help section:

```
If using Linux 3.12+ it's recommended to use Linux driver
```

Yes, absolutely, but only if are you reasonably sure that Linux 3.12 has all the same rtl8188eu features that it has currently.

Signature · 7 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Hi Luca,

Quoted 71 lines · Luca Ceresoli via buildroot

Hi Giulio,

Quoted 56 lines · On Wed, 16 Nov 2022 02:15:57 +0100 Giulio Benetti…
Quoted 55 lines · Giulio Benetti

Hi Thomas, Luca,

Quoted 51 lines · Thomas Petazzoni via buildroot
Quoted 33 lines · On Wed, 19 Oct 2022 15:48:23 +0200 Giulio Benetti…

This rtl8188eu driver is not the same as the one in mainline Linux that still has pending work to be done that in this driver is done, check:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO
specifically:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
So let's remove the description that is not valid anymore.

---
V1->V2:
* improve Config.in description as pointed by Luca Ceresoli

---
   package/rtl8188eu/Config.in | 7 ++++---
   1 file changed, 4 insertions(+), 3 deletions(-)
package/rtl8188eu/Config.in +4 -3
index 76d9085297..2fab1fd5c0 100644
@@ -4,9 +4,10 @@ config BR2_PACKAGE_RTL8188EU
       depends on BR2_LINUX_KERNEL
       help
         A standalone driver for the RTL8188EU USB Wi-Fi adapter.
-      This is needed only for Linux kernels before 3.12.
-      Since 3.12, there is a (staging) driver in mainline, with a
-      similar codebase.
+      This rtl8188eu driver is not the same as the one in mainline
+      Linux that still has pending work to be done that in this
+      driver is done, check:
+
Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/r8188eu/TODO

I don't see any thing in this TODO that explains why the out-of-tree driver is better than the mainline driver.

The out-of-tree driver has been integrated into drivers/staging/, and this TODO file lists what should be improved in the driver so that it can be graduated to move outside of drivers/staging/ into the proper drivers/net/wireless/ location.

I don't see anything in this TODO that indicates that the out-of-tree driver has "more features" than the mainline driver, so to me the Config.in help text still makes sense.

Could you give some more details?

Quoted 9 lines
Quoted 9 lines

The TODO file[0] is outdated because it states that:
* Switch to use LIB80211.
* Switch to use MAC80211.
* Switch to use CFG80211.
are still pending, but it's true not because if we check the Kconfig[1] we find 'depends on CFG80211' and LIB80211. Also if we check for ieee80211_*() callse int drivers/staging/r8188eu folder we find a lot of calls. So I think this module is only a copy of the Linux driver that can work as specified in the actual help(with Linux version before 3.12.

Quoted 3 lines

I haven't checked myself, but if you think the transition to cfg80211 and lib80211 is completed in mainline, you can send a patch to have the TODO updated in upstream Linux. That would reduce confusion.

I've double checked and it's still ongoing, there is a mix of code of local rtw_ieee80211.c and the linux's ieee80211.h, so I was wrong.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

Does it maybe make sense to add in the help section:

```
If using Linux 3.12+ it's recommended to use Linux driver
```

Yes, absolutely, but only if are you reasonably sure that Linux 3.12 has all the same rtl8188eu features that it has currently.

Not 100%. I think then it's better to drop this patch. I tag it as rejected in Patchwork.

Thanks for pointing all those precious details!
Best regards

Signature · 6 lines
Giulio Benetti
CEO/CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot