-
Notifications
You must be signed in to change notification settings - Fork 192
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
[Help]: Wifi adapter not showing up ALFA AWUS036AXML #539
Comments
i got it working without removing the BT firmware from /lib/firmware/mediatek directory however what i did to make it work at kernel 6.11 was the following |
I am not sure if I understand the problem so let me say in my own words what I think the problem is: You have installed Kali on two computers. One computer is a bare metal installation using kernel 6.11. The other installation is in a VM using kernel 6.8. The installation in the VM shows 30 AP's during a scan but the other only shows 8. If I am understanding correctly, my answer is: Starting with kernel 6.10, I have noticed a lot of problems in the WiFi stack in Linux. This is likely due to a large influx of patches supporting new features. Work is underway to fix things but that can take time. My suggestion has been for Linux users to stick with kernels 6.6 - 6.8 until things are better. Hopefully we will see progress with kernel 6.12. |
@morrownr yes what you understood is right also i have tired kernel 6.1 and 6.8 stand alone installation and while on monitor mode it shows 8 networks only i tried that yesterday that's why i found it really weird when I get such a result with stand alone installation |
Hmmm... If you could give me the commands you are using to scan, I could take a look here with different adapters and kernels. |
@morrownr sudo airmon-ng start wlan0 |
@morrownr quick update i switched from usb 3 to usb2 for any kernel and its performing really good so far i will keep you updated if i found any crashes |
A couple of months ago I wrote a message that I pinned in Issues in USB-WiFi: The reason I wrote the message was because problems with USB WiFi adapters are generally blamed on things in the following order:
USB falls into other things but it probably should be number 1 in reality. USB3 was not mankind's greatest creation. I think the engineers that developed it were pressured into too quick of a development cycle and inadequate testing was done and we are still feeling the consequences today and USB3.2 is creating additional issues. The best thing us USB WiFi adapter uses can do is be knowledgeable of the potential USB issues and know what to do to determine the solutions. If you see anything in my message that needs more information or clarification, please let me know and I will try to make it better. |
@morrownr i am not sure if the problem is from the USB or not as i mentioned before i have tried it out with usb3 over vm installation and was working fine but the problem lays behind working over usb3 under stand alone installation |
Your description of the situation suggests to me that neither the adapter or driver is at fault because things are working as you wish in one circumstance. In the case where the Linux USB stack is handling everything usb, things are not working right so that is where I would say the problem is. It is likely a system specific problem in that a particular usb driver is problematic on a specific usb chipset. I'm suspect the bug hunt should look at usb support, not the adapter or its driver. Could I be wrong? Sure. On the system where the adapter is running bare metal, are you seeing anything in the system log related to usb? |
@morrownr lets say its a system issue what i am going to do right now after i played with BIOS Settings like a lot i would go into the manufacture web site get a new bios update for the latest version after that if i didn't find any difference what i would like a suggest from to install a new Linux os from ur suggestion and i will carry the hunt one more time and about anything related to the system log regarding to the usb i can see it's the same however i used usb2 or 3 |
A bios update could help. A newer kernel could help as it might have fixes to parts of the usb stack. After the bios update and trying kernel 6.12, which will be released tomorrow, all you have left if things are not better is to start looking for hints as to what is causing the problem and my bet is it is something in the usb stack in Linux. You can determine the usb3 hub chipset and search for reports related to it. |
another sad update tested it with kernel 6.12 poor poor performance i had to deleted the BT firmware to make it work also had to echo "install btusb /bin/false" >> /etc/modprobe.d/local-dontload.conf well i think i give up |
Before you give up, try contacting Alfa to tell them what is happening. |
@morrownr i don't think that they will care don't they see what is going on with this chip since along time and the latest release for the firmware they have since early 2023 but alright in this case i will give it a shot i will get in touch with them |
I do think they will care. I do not think this is a problem with the driver or firmware. I think Alfa made a mistake in what they burned to eeprom. I say this because I am aware of only 3 adapters with the mt7921au chip that has reported this problem and 2 of them are from Alfa. All 3 were early to market adapters. None of the recent adapters show this problem. Alfa could already have done a manufacturing refresh to correct the problem and they might send you a new adapter. Let me know what you find out. |
Hey thanks all for trying to solve this one. Picked up the AWUS036AXML over the weekend. Tried on two VM's running kali and parrot with kernels 6.11.2 and 6.10.11, respectively. I am using vbox for virtualisation. Managed to somehow get it working in parrot once. NFI. Have noticed issues with enabling bluetooth in the two VMs with this adapter. I also have Ubuntu on bare metal running kernel 6.8.0-48 and am having some success, but it seems with only certain USB cables. Not 3.0 cables - I have tried two 3.0 cables without success. The official ALFA cable will not work in either USB-A or USB-C ports and even trying it will cause the system to hang on reboot or restart. Using a 3.0 cable causes issues for Ubuntu and a simple logout/login can help. Note: I also have a Netgear A8000 (mt7921au) that works perfectly on all machines. Edit: When I say there is success on the Ubuntu machine, monitor mode/packet injection is working. |
@Ray78PM hello ray i have quick update i managed to make it work at kernel 6.11.2 with firmware for the adapter dated at 26-8-2024 make sure that the usb port for the VM is usb3 (VM Settings) then when you finish the installation do the following sudo apt update sudo apt update full-upgrade -y that's only to get the new kernel 6.11.2 and some optimization what you are going to find now at /lib/firmware/mediatek supposed to be the firmware that is dated to 26-8-2024 then try to follow these steps unplug your adapter from the usb modprobe -r btusb sudo echo "blacklist btmtk \n blacklist btusb" >> /etc/modprobe.d/blacklist.conf sudo reboot when you login to your linux system plugin your alfa device important notice please check /lib/firmware/mediatek and have a look at the date of the firmware for the adapter |
Quick update make sure you plugin your alfa adapter to usb2 interface but let it be for the vm settings as USB 3 have tried it everything for the past 10 hours didn't get any crash monitor mode and injection working perfect |
Hello 1- USB3 is a big problem for ALFA AWUS036AXML if you tried to run the network adapter through USB3 you will get a huge downgrade at the performance in general specially at packet injection and monitor mode 2- second issue BT Won't work at all except from what i seen is working only at ubuntu 3- how to make ALFA AWUS036AXML work well at kali linux as this was the topic of my research for stand alone installation , you can refer back to the old comment if you would like to make it work at VM 3-1 plugin your alfa card before booting into installation phase to USB2 3-2 install kali linux as stand alone installation , *** yes it works if you did dual boot also**** **************************************************IMPORTANT NOTICE FROM THIS PART ********************************************** open your terminal 3-3 sudo apt update 3-4 sudo apt update full-upgrade -y 3-4-1To install or update the firmware: Go to the following site: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek Click on WIFI_MT7961_patch_mcu_1_2_hdr.bin Click on plain Save file Click on WIFI_RAM_CODE_MT7961_1.bin Click on plain Save file If your adapter/card has Bluetooth support: Click on BT_RAM_CODE_MT7961_1_2_hdr.bin Click on plain Save file Create the needed directory (if necessary): sudo mkdir /lib/firmware/mediatek Copy the files to the following locations: sudo cp WIFI_MT7961_patch_mcu_1_2_hdr.bin /lib/firmware/mediatek sudo cp WIFI_RAM_CODE_MT7961_1.bin /lib/firmware/mediatek sudo cp BT_RAM_CODE_MT7961_1_2_hdr.bin /lib/firmware/mediatek 3-5 unplug your alfa card 3-6 sudo reboot 3-7 modprobe -r btusb 3-8 sudo su 3-9 sudo echo "blacklist btmtk \n blacklist btusb" >> /etc/modprobe.d/blacklist.conf 3-10 sudo echo "install btusb /bin/false" >> /etc/modprobe.d/local-dontload.conf 3-11 sudo reboot 3-12 plugin your alfa card to USB2 AND ENJOY |
quick update : When doing evil twin attack , switching to VIF mode don't expect deauth will work at all ..... that's getting crazy i am about to pull my hair off |
USB2 is much more stable than USB3.
I am actually in contact with Alfa since last week. I will report as able. My AXML does not support BT but for example, if I plug my adapter into a clean installation of Ubuntu 24.10 and boot, a wireless interface never comes up without the workaround we have discussed. It seems the reason is that the system is detecting BT support but then hangs when the BT support is not actually there. Hopefully we can get to some kind of resolution. If I have something important to report from Alfa, I will likely start a new issue because we have several AXML users.
Take a deep breathe and maybe we can get to the bottom of this. |
@morrownr with 6.11.2 every thing went smooth except the bt as you know also the big surprise after i thought everything was good it was while doing evil twin attack i found out when you change your card to VIF mode guess what the deuath packets not working anymore i didn't believe that i pulled Wireshark and yeah it's not working, the good news everything is working fine so far with kernel 6.0.0 except the bt part with the latest firmware also the sad part is the scanning part compared to 6.11.2 or any other kernel downgraded by half which means if i can get 50 network @6.11.2 i will get 25 network @ 6.0.0 kernel also seemes like we have a kernel issue when it comes to switching your adapter to VIF mode ....... and also VIF wont work with deuath except with kernels less than or equal 6.1 |
i figured out what happened when changing the interface into VIF mode |
@morrownr is there any updates from alfa guys? |
Nothing to pass on yet. I have been busy but I did read your other messages above. Some advice: There are people that stop by here at times that are a lot smarter on monitor mode than I am. The problem with your specific reports down in this thread is that almost nobody will see them. When you identify a new specific monitor mode issue, start a new thread. My expertise is more in AP mode than monitor mode but I do know some really knowledgeable people. |
@morrownr hello , i hope that you are doing well i managed to solve most of the problems above by getting kernel 6.0.0 and the old firmware at ALFA site except the bluetooth keep crashing the kernel from 6.0.0 till 6.12.1 |
Checklist
uname
Linux Test 6.11.2-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.11.2-1kali1 (2024-10-15) x86_64 GNU/Linux
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 413c:2106 QuietKey Keyboard Bus 003 Device 003: ID 046d:c08b Logitech, Inc. G502 SE HERO Gaming Mouse Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
rfkill
output is blank
dkms
iw
What happened?
well i have installed kali linux with kernel 6.8 then i made full upgrade also i have added the new firmware for MediaTech 7921 as you have mentioned at https://github.com/morrownr/USB-WiFi/blob/main/home/How_to_Install_Firmware_for_Mediatek_based_USB_WiFi_adapters.md when i run lsusb the command doesn't complete and get stuck with the info i showed above i have no clue really what to do will be appreciated if there's some assist from you thank you also that's the result for iwconfig iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
no sign of the wireless adapter
The text was updated successfully, but these errors were encountered: