Replies: 14 comments 6 replies
-
It is unlikely to work well. I certainly would not do it in a commercial product. My experience over many years is that it works well to have many adapters connected to a system... as long as all adapters use different drivers. This is particularly true of Realtek chipset based products. There may be an exception here and there but I am not aware of any exceptions. With that said, I regularly run multiple usb wifi adapters with a single computer. Up to 4 at a time in fact. It can be very very stable. I just make sure that I do not have more than one adapter with the same chipset. I think I remember doing a test with 2 mt7612u adapters at some point and it worked but I would have to retest as my memory is not as good as it used to be. Let me know you want me to test this. Regards, |
Beta Was this translation helpful? Give feedback.
-
That statement indicates that you have tested Mediatek based adapters. Now I am wondering why we are having this conversation.
Yes, you made that clear in the original post. Let me rephrase my reply. That is a REALLY BAD IDEA. I run a dual band router that is based on an ARM processor. I made it. It uses two usb wifi adapters. It is rock solid.Why is it rock solid? Because I know what works. I'll be glad to make some suggestions if you share some details of your plan. My suggestions will not include using two rtl8822bu adapters in the same setup because that is a REALLY BAD IDEA. |
Beta Was this translation helpful? Give feedback.
-
Oh, my. Basing a WiFi product on a kernel this old? Planning on support WPA3? Basing a WiFi product on a kernel that old is a security nightmare. I would not use a kernel older than 5.4 but newer would be better.
If you want to spend a lot of money on a developer to rewrite a lot of code, possibly. There is no practical way for this to happen that I am aware of. |
Beta Was this translation helpful? Give feedback.
-
Do 2 Mediatek adapters with the same chipset work together? |
Beta Was this translation helpful? Give feedback.
-
I just added a second adapter with a mt7921au chipset to my homemade wifi router:
A second interface came up. I'll need to do some reconfiguring and activate it as an AP to give it a good test. I think I will set the new adapter to the 2.4 GHz band since that kind of setup is what the OP is talking about. |
Beta Was this translation helpful? Give feedback.
-
Is it good idea to use one RTL8822BU (i.e WIFI-5 based dongle) and one RTL8852CU (i.e WIFI-6 based) dongle connected to the single ARM based system? |
Beta Was this translation helpful? Give feedback.
-
I am testing. I burned a new sd with RasPiOS 2024-03-15, kernel 6.6. The hardware is a RasPi4B with 2 usb wifi adapters based on the mt7921au chipset. The driver is mt7921u which is in-kernel and has been since kernel 5.18. The chipset/driver are tri-band WiFi 6 but I will use the 2.4 and 5 Ghz bands. My testing so far shows the 2 interfaces below. I am connected and have used APs on both interfaces. No problems noted so far but this is a quick and dirty test. A longer term test is needed. I will leave this setup going and will continue to use it over the next few days to see if I can find any problems. You can ping me here when you want an update.
|
Beta Was this translation helpful? Give feedback.
-
My current recommendation to all Linux users is to avoid usb wifi adapters based on Realtek's WiFi 6 chipsets. This includes the following chipsets: rtl8852/32au I have a driver for the rtl8852/32bu up here. I had previously tried to get a Realtek out-of-kernel driver up for the rtl8852/32au chipset. That driver terrible and I have no intention of ever going to back to work on it. The driver that I have up is not a good driver. I tell people in the README that basically I am only supporting managed mode and I try to convince them to avoid adapters with the chipset. Do I expect the rtl8852/32cu to be any better? I doubt it. Realtek has used the WEXT era driver model way beyond what was a good idea so these WiFi 6 driver are really really bad. The good news is that the Linux kernel management is putting an end to Realtek and their way out dated WEXT era drivers. There is code in the Linux kernel these days that will detect WEXT use for WiFi 7 drivers and it will stop the driver in its tracks so Realtek is at the end of the line. They are being forced to do something thay should have done many years ago. On the other hand, Mediatek is so far ahead of Realtek with their usb wifi support that it is hard to believe. Mediatek's support the mt7925 chipset, which WiFi 7, is already in the Linux kernel and is standards compliant... modern standards compliant. We are simply waiting for products to ship. |
Beta Was this translation helpful? Give feedback.
-
mt7612u. Solid driver. Solid AC1200 chipset.
Do you mind sharing the issues? The tremendous complexity of the WiFi 6 and 7 drivers is incredible. Patches continue to roll in for the mt7921u driver. Test it on kernel 6.6 and see if you see a difference... and make sure you use up-to-date firmware for your testing. I have a menu item for firmware upgrades.
There have been massive updates to the wifi stack in Linux over the last 5-6 years. You really need to think about going with a newer kernel or you will have to deal with little incompatibilities all over the place. |
Beta Was this translation helpful? Give feedback.
-
My opinion is that the mt7612u chipset may be EOL by a specific maker but I think it should be available in usb module format for several years as it has the single best Linux driver in the WiFi 5, AC1200 category. Here are the links for a site that I check at times:
This is about the mt7921au (I have to remind myself). This is a surprise. I'm trying to remember any managed mode stability issues that have been reported and I am coming up blank. Were you keeping the firmware updated? I'd be interested in the details as I would like to see if I can find more info or duplicate it.
II do nothing with mesh so I would have to spin up to speed to see what is going on there. How would I duplicate this problem? I just happened to think that while this conversation is interesting, if you must stick with kernel 3.4, most of what we are talking about does not matter. Backporting any of these modern drivers to that kernel would be a challenge. Well, I understated that. It would be unpractical. |
Beta Was this translation helpful? Give feedback.
-
I think the problem with using two identical Realtek dongles is that the out of tree drivers have some global variables. The in kernel drivers should not have this problem because, I was reminded recently, global variables are a big no no in the kernel. On the other hand, rtw88_8822bu doesn't work well in AP mode yet. Maybe you can identify the global variables and rename them, make two copies of the driver.
I'm pretty sure the wifi 4 and 5 drivers with version 5.x.y.z don't use wext anymore. The wifi 6 drivers seem to have a newer codebase, with the version number starting from 1. They do use cfg80211 instead of mac80211, which is not ideal, but they are not affected by the wext deprecation. Only the older drivers abandoned earlier still use wext, e.g. rtl8723au, rtl8192cu, rtl8192du. |
Beta Was this translation helpful? Give feedback.
-
I investigated this about 2 years ago. It did not pan out as there appears to be more to the problem.
Agree. AP mode has not cooked enough in the in-kernel driver yet. Then there is the problem with getting the in-kernel driver working on kernel 3.4.
Noted. I think this may be a per driver thing. Last time I looked I saw the "wext detected, be advised wext support will not be allowed starting with WiFi 7."
Realtek's out-of-kernel usb drivers for WiFi 6 cause me to start saying many bad things. Those drivers are bad and in no way could be of use to the needs of the OP. The difference between Realtek's WiFi 6 drivers and Mediatek's is frankly astounding. If it were practical to backport mt7921u to kernel 3.4, then the OPs problem would likely be solved. |
Beta Was this translation helpful? Give feedback.
-
I wonder if there will be much demand for AP mode. |
Beta Was this translation helpful? Give feedback.
-
Yes, there already is high demand for AP mode. I get direct emails from companies working on commercial products. They often use usb wifi modules instead of adapters but it is the same driver. The most heavily used modes are AP and STA. There are a lot of cool products out there... robotics, automation and more and they need to communicate.
I can't argue with this observation. I'll add that it appears there are far fewer community members working on the out-of-kernel Realtek drivers than there were maybe 5-6 years ago. My best guess is that Mediatek has disrupted this market and many users of usb wifi adapters have moved over to adapters and modules based on Mediatek chips. |
Beta Was this translation helpful? Give feedback.
-
We are using RTL8822BU usb dongles in our wireless router products. One dongle will be used as STA + AP (i.e 2.4GHz) mode and another dongle will be used for 5GHz band AP.
By using this driver, we can use only one dongle operational at a time. Is there a way to operate both dongles simultaneously?
Beta Was this translation helpful? Give feedback.
All reactions