-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alfa Network AWUS036AXML: WDS AP does not work #392
Comments
Hi @patrakov
I agree but I also think it should be fixed. Some options: OpenWRT maintains a downstream repo for the mt76 series of drivers: https://github.com/openwrt/mt76 Patches flow back and forth between this repo and the kernel. Posting your report at this site is worth a try. Some of the Mediatek devs are part of the OpenWRT project and they watch their mt76 repo. A suggestion:
Alfa Network AWUS036ACM (mt7612u) I would add the chipset for the problem driver (mt7921au) in the title also. |
I cannot even use the entire Device, it immediately disconnects (Archlinux latest) |
Hi @zDEFz Not much to go on in your message. Your adapter is an Alfa AXML? What kernel is in your Arch? Why are you installing |
I have read somewhere it helps. Yes, AXML. Finding:Blacklist |
You do not need the rtl (Realtek) stuff. |
No, the
Exactly which files did you blacklist? I want to get to the bottom of this. |
ok I write you a guide on what I did in order. Preliminary Steps:
Obtaining Firmware:Use @morrownr s Guide provided here. Follow 3. MT7921 - mt7921au, mt7921, and mt7921k (AMD RZ608) chipsets Reenabling Bluetooth Services:
That helped! Thank you for sharing the firmware guide! |
Nevermind... Although the device now doesnt entirely disappear, pairing in bluetooth mode does not work, but bluetooth still lists devices. I wonder how I can gather that info. However, now we can use a secondary bluetooth stick. Thats progress :) I was using This is what I got from cli:
via bluetooth ctl.... success and then immediately pair 6B:94:12:96:25:1E [6B-94-12-96-25-1E]# [DEL] Device 5E:25:E4:B6:2A:BC 5E-25-E4-B6-2A-BC
[6B-94-12-96-25-1E]# [DEL] Device 7C:7E:9F:EE:76:0F 7C-7E-9F-EE-76-0F
[6B-94-12-96-25-1E]# [CHG] Device 6B:94:12:96:25:1E ServicesResolved: yes
[6B-94-12-96-25-1E]# [CHG] Device 6B:94:12:96:25:1E ServicesResolved: no
[CHG] Device 6B:94:12:96:25:1E Connected: no
[bluetooth]# Failed to pair: org.bluez.Error.AuthenticationCanceled Trying to WorkaroundI tried the technique described in your guide to delete a file to disable the bluetooth functionality so I can use my stick for the meantime. But doing Trying to pair to other devices in bluetooth, fails too. Found a Workaround with second dongle so I can use Bluetooth.$ rfkill list bluetooth
1: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
3: hci1: Bluetooth
Soft blocked: no
Hard blocked: no
$ sudo rfkill block 1 Then to use BluetoothConnecting: Disconnecting: bluetoothctl
[FP30] disconnect |
@morrownr So grabbing the firmware did help a lot. But I did not compile a new kernel as described in https://github.com/morrownr/USB-WiFi/blob/main/home/Compiling_the_Linux_Mainline_Kernel.md I will try that, too. |
Why is it that you want to compile a new kernel? |
Screw it, I send that thing back. |
FYI I don't think Bluetooth works in USB 3 mode. |
@patrakov what firmware were you running? |
I was informed those Adapters work better on Kali Linux. |
The default one in OpenWrt 23.05.3. That is:
|
I think the command |
in perfect timing, my am I missing something? |
There are some pretty smart people stop by here but they will likely never see this issue at the end of an old post. Recommend you come up with an appropriate title and explanation and post a new issue. |
Are you root? |
Saw this in a very old reply to a question:
Here $ADDR must match the WDS device address configured in the router; other than that, it can be any valid MAC address. The original MAC of wlan0 then remains for "normal" usage. |
This might be good info for you to know about the mt7921u driver:
Also, I am not an expert at what you are doing but should you not take the interface down before you try to make a change? This question kind of follows on to the posting I made above. I do some limited monitor mode work you gotta take the interface down before you to do certain things. Also, if NetworkManager is trying to manage the interface you are trying to use, NM wins so it could be that you need to configure NM to not manage the interface. This would case the reply that you saw. |
thanks guys for trying to help!
yeah, everything was run as root, in debian
what does this actually mean? (about the valid interface combinations). to make this clearer:
iw phy shows:
I renamed the device from wlx[mac-address-without-semicolons] to
once I verified network connection using the new device, I commented out that part above, and tried enabling 4addr before creating the bridge, using
at this point, I'm questioning if:
according to the first post, it seems one of 1-3 may be true... |
Let me see what I can explain. Here is an example of adding a new interface, giving it a type and turning 4addr on. I expected you to use your information when I posted the example. Note that the interface in the command below is an already existing interface from a Alfa ACM adapter that uses an mt7612u chipset. I gave the new interface the name of myNewIface, made it a managed interface and turned 4 addr on. See how it look by using $ iw dev.
You adapter based on the mt7921au chipset can support multiple interfaces on the same adapter. I just showed you an example above with my phy#3. The interface combinations supported by any wireless device on Linux can be found with this command: $ iw list That command will list a LOT of information so you have to look for the section I posted. This ability to add multiple interfaces can come in very handy depending on what you are doing.
My adapters with the mt7921au chipset are busy right now so I tested 4addr on the older generation chipset and 4addr came to life as you can see in my posting above. I am no expert with WDS. I suspect WDS will work given the knowledge to set it up.
The mt7921u driver is really solid but all drivers have issues of one kind or another. I run this driver is several modes, to include AP mode, and have found it to be really good.
Same answer as for the driver.
It could have an issue but I don't think it is the problem in this case.
You can upgrade to kernel 6.6 very easily. How do you add .deb packages to your installation?
Don't get frustrated. Learn what you are doing one step at a time. If you are following a guide, you can give me a link and I will offer my advice on whether it is a good guide or not. |
I followed multiple stackexchange/superuser/debian q&a, for creating WDS, and it all boiled down to the need for enabling 4addr on the interface. anyway, it's not working:
(same command without the
maybe I should replicate your env, what OS/kernel are you running? |
I have new adapter coming early next week. I might find the time to do a temp change in setup here to see what I can do before then. Pay very careful attention to the example I gave you above. Keep in mind that you have to take your existing interface down before you do this.
Notice how it says "4addr: on".
Extremely unlikely. This is a driver thing, not a hardware thing. |
the interface was not up before the seems like I've ran my course on this adapter, unless you can think of something else to try... |
I really can't think of anything else right now.
This is on my to-do list. My setup is different than most people in that running this site causes me to have to organize things. I'll get to this but right now a couple of other tests are in progress with the adapter that I need to use. I will have another adapter early next week so this won't take too long. Could you do something in return? Forget about 4addr for a while and just use the fenvi to see how you like it? I'm always looking for reports to add to the Plug and Play List. My place is interesting. I have probably around 30 usb wifi adapters. I do a lot of work and testing to help users out. I can't be an expert on everything but I can often get to the bottom of problems. Have a good weekend. |
I tried two other OS: arch (latest) and clear linux (latest)
it seems that mt7921au does not support 4addr. possibly related issues: regarding regular usage of the adapter - it's a bit tricky, because it was bought specifically to be used in a bridge setup with the J3455 celeron mini PC I mentioned. |
Does the mt7612 support 4addr? |
At least the USB version, yes. |
@morrownr until you have some news with the tests, I setup proxy arp with the device, and so far (~1d) it's working just fine. |
Regarding the benchmark, I have some questions:
|
it functions as a client. router side (openwrt):
client side (not at the exact same moment):
|
Can you do an opposite type of a benchmark, with the USB WiFi acting as an AP? |
the router does not have a USB slot unfortunately. |
After getting some time to look at this issue, it appears that WDS is not supported in AP mode currently. I was able to get positive results for 4addr in managed mode. I am going to write this up in the pinned issue where we track bugs/feature request. Are you aware of any usb wifi adapters that do support WDS in AP mode? |
@morrownr what's |
Yes - Alfa Network AWUS036ACM. |
Managed mode, Client mode. STA.... all the same thing. Yes, 4addr came right up in client mode. |
So, this is working with the mt7612u driver but not with the mt7921u driver? Here is the link to the Mediatek Linux wifi page. Note thr emaill addresses at the bottom. When you email the, remember they communicate with chipsets and drivers, not product brand and model number so Alfa AXML may not mean anything to them. Be nice and make sure you tell them it works in the mt7612u driver but not the mt7921u driver. You might also add a link to this issue in case they need background info. Edit: Forgot to include the link: |
It gave another try today to OpenWrt snapshot (which uses 6.1.79 kernel with the WiFi stack backported from 6.6.15) on x86_64 hardware, using my two USB WiFi adapters:
I tried to set up WDS AP on each adapter. With AWUS036ACM, it just works. With AWUS036AXML, the WDS client connects, but the traffic passes only for that client, not for the bridged network behind it.
The
phy1-ap0.sta1
interface is not getting created.The
iw phy
output is attached below.iw-phy.txt
I think that this driver limitation should be documented.
The text was updated successfully, but these errors were encountered: