Skip to content
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

(solved-needed proper settings with hostapd) Alfa AWUS036ACM Master Mode #2

Open
DeityOfChaos opened this issue Mar 31, 2021 · 5 comments

Comments

@DeityOfChaos
Copy link

DeityOfChaos commented Mar 31, 2021

My Alfa AWUS036ACM doesn't support master mode, I thought it worked for AP.. - Raspberry Pi 3B+?

image
image

image

I noticed this because it's the only adapter that would crash hostapd, then I figured it must be something realted to AP/master mode.
How did you get yours in master mode?

Edit:

I can put an RTL8812AU (AWUS036AC) instead and use "sudo service hostapd restart && sudo service dnsmasq restart" and worked just fine. Might be a config issue, driver issue or USB 2.0 port issue. This was tested on RPI 3B+ and I'll test on RPI 4 which has two 2.0 and two 3.0 USB ports.

image

Edit: wait for further feedback I am going to try it again soon ,it worked on kali all I had to do was to remove one of the ht capabilities. I'm unsure how to edit the hostapd.conf ht capaiblities correctly, i'll need to find the full list of capabilities for Alfa ACM and see if it fixes the problem on RPI 3B+. I will try on RPI 4 soon.

@morrownr
Copy link
Owner

morrownr commented Apr 1, 2021

https://github.com/morrownr/7612u/blob/main/Bridged_Wireless_Access_Point-2.md

That link shows my setup on a RasPi4b. I use 2 hostapd.conf files so as to support 5g (the ACM) and 2g (the internal RasPi wifi capability). You can grab the ACM ht and vht settings as needed.

Let me know.

@morrownr
Copy link
Owner

morrownr commented Apr 1, 2021

For the ACM (mt7612u)

ht_capab=[LDPC][HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1]

vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

The mt7612u and rtl8812au require very different settings for the above lines. The above lines are for the mt7612u chipset and driver.

@DeityOfChaos
Copy link
Author

DeityOfChaos commented Apr 2, 2021

For the ACM (mt7612u)

ht_capab=[LDPC][HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1]

vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

The mt7612u and rtl8812au require very different settings for the above lines. The above lines are for the mt7612u chipset and driver.

yes my primary issue was the capability set, and then for unknown reasons problems persisted until I rebooted the device. I commented out 5Ghz functions and simplified the config file to just use 802.11n and seems to work fine, I found your repository regarding configs mt7612u and it was a life saver lol

the AC model and ACH seem to be a little bit more versatile and easier to set up for AP mode (they worked with whatever config I threw at them) but again the fact RTL8812AU isn't an in-kernel driver can be a deal breaker.

I also noticed the ACM model (400mA max input power) could not have the TX Power adjusted (operation not permitted), it tops at 23dBm digitally (after changing the regulatory CRDA files to 30dBm) or 20dBm with the normal 20dBm limit and won't change. AC and ACH can easily be configured to 30 dBm. I don't know if these digital values are accurate or if they even have any actual significance in real transmission power but maybe for AP mode or Wi-Fi repeater it might be significant.

Thanks dude, happy easter mate

@morrownr
Copy link
Owner

morrownr commented Apr 2, 2021

Happy Easter to you too.

I think using hostapd with the ACM vs ACH is really a matter of familiarity. My RasPi4b's main job is serving as an access point. I do a lot of testing with the setup and can say without hesitation that the Alfa ACM (mt7612u) and ACH (rtl8812au) are the best adapters that I have as far as serving as access points. I am going to have an Alfa ACHM (mt7610u) soon so I'll do some testing with it to see how it stacks up. I will add, in case others read this post, that users looking to use master (AP) and/or monitor modes should stick with adapters based on the mt7612u/mt7610u and rtl8812au/rtl8811au chipsets if they are looking for dual band adapters. The Realtek drivers for the rtl8812bu, rtl8814au and rtl8811cu chipsets do not do master (AP) and monitor modes well at all.

The differences that I see between the ACM and ACH have mostly to do with driver capabilities:

  • WPA3 - the Mediatek driver (in-kernel) for the ACM supports WPA3 and WPA3 Transition. The Realtek driver for the ACH does not support WPA3. It says it supports WPA3 but I can't make it work and have found nobody else that can make it work. I am working behind the scenes to try to figure out what the problem is. The hostapd.conf you looked at and had problems with had WPA3 Transition turned on. The ACM will certainly support that but if you then try to access it with an adapter that is using a Realtek driver, the Realtek driver won't work so you think the ACM is in the wrong...which is wrong. If you will post your hostapd.conf that you are using with the ACM, I will help you tweak it.

  • Interface combinations - the ACM driver supports various interface combinations. The Realtek driver does not. You can check for yourself with $ iw list. I regularly get questions about how to set up various interface combinations with the Realtek drivers and I just have to say "not supported" by Realtek and it is not something that I am able to add.

  • Support for Linux Wireless Standards. You can see this when using iw and ip. With the Realtek drivers you will notice gaps in information and some bogus information.

On to other stuff:

Quote: "I also noticed the ACM model (400mA max input power) could not have the TX Power adjusted"

I have several things to say here. That low input power requirement of the ACM makes it a dream come true for use with the RasPi4b since the RasPi4b only has a total of 1200 mA for the entire USB subsystem. The ACH can and does take around 800 mA when pushed so if you have other things running from USB, you may be looking at brown out time when pushing things with the ACH. I understand what you are saying about "power adjusted" but let me point out that just because the Realtek driver says the power has been adjusted does not mean that it really has been adjusted.

I'll be glad to help you get your ACM going full speed with hostapd on your RasPi4b.

Regards,

Nick

@morrownr morrownr changed the title Alfa AWUS036ACM Master Mode (in progress) Alfa AWUS036ACM Master Mode Apr 2, 2021
@DeityOfChaos
Copy link
Author

just because the Realtek driver says the power has been adjusted does not mean that it really has been adjusted.

I've had this feeling for a while now lol :')

Regarding WPA3 let's hope someone who done it speaks up regarding WPA3 with RTL8812AU.
I'm starting to enjoy the MediaTek chipset, I haven't found any bug with the driver yet and I honestly wished Alfa Networks relied more on MediaTek than Realtek.

My AP setup relies in a Raspberry is RPi 3B+ with Raspbian Lite and even though it isn't even USB 3.0 and is significantly less performing than Rpi4, it is still strong enough to provide a solid network with minor lag and performance loss, pretty awesome

@morrownr morrownr changed the title (in progress) Alfa AWUS036ACM Master Mode (solved) Alfa AWUS036ACM Master Mode Apr 20, 2021
@morrownr morrownr reopened this Apr 30, 2021
@morrownr morrownr changed the title (solved) Alfa AWUS036ACM Master Mode (solved-needed proper settings with hostapd) Alfa AWUS036ACM Master Mode May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants