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

AX200 5GHz AP AX mode works, tildearrow's method. #9976

Closed
ghost opened this issue Aug 21, 2022 · 24 comments
Closed

AX200 5GHz AP AX mode works, tildearrow's method. #9976

ghost opened this issue Aug 21, 2022 · 24 comments

Comments

@ghost
Copy link

ghost commented Aug 21, 2022

AX200 5GHz AP mode, tildearrow's method. No need for lar_disable!

https://tildearrow.org/?p=post&month=7&year=2022&item=lar

here it is with openwrt.

image

patch cleaned up for openwrt

999-hostapd-2.10-lar.patch.txt

I posted this to share information that its now possible.

@ghost
Copy link
Author

ghost commented Aug 21, 2022

some more test

image

@wlshdjj
Copy link

wlshdjj commented Aug 21, 2022

So, there must be another 5g AP that AX200 5g will work ?

@ghost
Copy link
Author

ghost commented Aug 21, 2022

So, there must be another 5g AP that AX200 5g will work ?

I think so, since thats how it knows its own regulatory domain. It does 802.11d compliance this way.
We need more tests.

EDIT:

I just managed to bring it up even after turning off all 5GHz radios in the house, so I'm not sure anymore.

image

also the usable channels is pretty limited


            * 5180 MHz [36] (22.0 dBm) (no IR)
            * 5200 MHz [40] (22.0 dBm) (no IR)
            * 5220 MHz [44] (22.0 dBm) (no IR)
            * 5240 MHz [48] (22.0 dBm) (no IR)
            * 5260 MHz [52] (22.0 dBm) (no IR, radar detection)
            * 5280 MHz [56] (22.0 dBm) (no IR, radar detection)
            * 5300 MHz [60] (22.0 dBm) (no IR, radar detection)
            * 5320 MHz [64] (22.0 dBm) (no IR, radar detection)
            * 5340 MHz [68] (disabled)
            * 5360 MHz [72] (disabled)
            * 5380 MHz [76] (disabled)
            * 5400 MHz [80] (disabled)
            * 5420 MHz [84] (disabled)
            * 5440 MHz [88] (disabled)
            * 5460 MHz [92] (disabled)
            * 5480 MHz [96] (disabled)
            * 5500 MHz [100] (22.0 dBm) (no IR, radar detection)
            * 5520 MHz [104] (22.0 dBm) (no IR, radar detection)
            * 5540 MHz [108] (22.0 dBm) (no IR, radar detection)
            * 5560 MHz [112] (22.0 dBm) (no IR, radar detection)
            * 5580 MHz [116] (22.0 dBm) (no IR, radar detection)
            * 5600 MHz [120] (22.0 dBm) (no IR, radar detection)
            * 5620 MHz [124] (22.0 dBm) (no IR, radar detection)
            * 5640 MHz [128] (22.0 dBm) (no IR, radar detection)
            * 5660 MHz [132] (22.0 dBm) (no IR, radar detection)
            * 5680 MHz [136] (22.0 dBm) (no IR, radar detection)
            * 5700 MHz [140] (22.0 dBm) (no IR, radar detection)
            * 5720 MHz [144] (22.0 dBm) (no IR, radar detection)
            * 5745 MHz [149] (22.0 dBm)
            * 5765 MHz [153] (22.0 dBm)
            * 5785 MHz [157] (22.0 dBm)
            * 5805 MHz [161] (22.0 dBm)
            * 5825 MHz [165] (22.0 dBm) (no IR)
            * 5845 MHz [169] (disabled)
            * 5865 MHz [173] (disabled)
            * 5885 MHz [177] (disabled)
            * 5905 MHz [181] (disabled)

even if you modify wireless-regdb it will not budge, it has some sort of firmware regdomain inside it seems.

@aiamadeus aiamadeus pinned this issue Aug 21, 2022
@ghost
Copy link
Author

ghost commented Aug 22, 2022

Wow, so exciting, thank you so much for sharing this.

I added

if (!iface->conf->noscan) {
//scan
}

as you see this is to do the lar scan you have to do option noscan '0'
this will be handled better if lets say you make option lar_scan or something like that.

also wise to add these radio options

option he_bss_color '8'
option he_su_beamformee '1'

from: https://forum.openwrt.org/t/802-11ax-worse-than-802-11ac-with-mt76-driver/126466/50

and it results to this
image

I don't know the stability of this setup or what not as I only have PCs as ax clients.

I kinda want to share this on right.com.cn (but I don't speak chinese) as it would be nice to see if someone tests this too on their own especially on x86 builds.

@wlshdjj
Copy link

wlshdjj commented Aug 22, 2022

I have no AX200 to test. All I want to do now is hope to make MT7921 work better.

@ghost
Copy link
Author

ghost commented Aug 22, 2022

I have no AX200 to test. All I want to do now is hope to make MT7921 work better.

I think AP mode on MT7921 and MT7921K already works.

also on another note, is MT7922 already available in china?

@wlshdjj
Copy link

wlshdjj commented Aug 22, 2022

I haven't seen anyone selling the MT7922 yet.

@aiamadeus
Copy link
Collaborator

also on another note, is MT7922 already available in china?

It's available on the second-hand market, but it's rare and a little more expensive.

@tildearrow
Copy link

Hello! Author of the original patch here.
Note that the way I implemented it is a hack which may not work properly sometimes.

@coolsnowwolf coolsnowwolf unpinned this issue Sep 6, 2022
@SunSgr
Copy link

SunSgr commented Sep 7, 2022

Sure,I got the MT7922 two days ago, but I don't know how to drive it.

@ghost
Copy link
Author

ghost commented Sep 9, 2022

Sure,I got the MT7922 two days ago, but I don't know how to drive it.

openwrt/openwrt#10564

you install kmod-mt7921e and then you will need

WIFI_MT7922_patch_mcu_1_1_hdr.bin
WIFI_RAM_CODE_MT7922_1.bin

in /lib/firmware/mediatek

@ghost
Copy link
Author

ghost commented Sep 10, 2022

my theory on how to make this patch to not affect other radios (non intel 5GHz) goes like this

if (iface->conf->intel_lar && !iface->conf->noscan) {
      do_lar_scan!
 }

999-hostapd-2.10-lar.patch.txt

then add
option intel_lar '1' on /etc/wireless/config
then it should show up intel_lar=1 on /var/run/hostapd-phyX.conf

image

image

it already works on hostapd but I dont know the way on how to add it in uci/luci
but I dont know the proper edit to be done on hostapd.sh and other scripts

EDIT:
I think I've got it

--- hostapd.sh.orig	2022-09-10 01:55:41.409228000 +0800
+++ hostapd.sh	2022-09-10 16:32:39.349899173 +0800
@@ -117,6 +117,7 @@
 	config_add_int rssi_ignore_probe_request
 	config_add_int maxassoc
 	config_add_boolean vendor_vht
+	config_add_boolean intel_lar
 
 	config_add_string acs_chan_bias
 	config_add_array hostapd_options
@@ -134,7 +135,7 @@
 
 	json_get_vars country country3 country_ie beacon_int:100 dtim_period:2 doth require_mode legacy_rates \
 		acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode cell_density \
-		rts_threshold beacon_rate rssi_reject_assoc_rssi rssi_ignore_probe_request maxassoc vendor_vht
+		rts_threshold beacon_rate rssi_reject_assoc_rssi rssi_ignore_probe_request maxassoc vendor_vht intel_lar
 
 	hostapd_set_log_options base_cfg
 
@@ -216,6 +217,7 @@
 				set_default rate_list "24000 36000 48000 54000"
 				set_default basic_rate_list "24000"
 			fi
+			[ -n "$intel_lar" ] && append base_cfg "intel_lar=$intel_lar" "$N"
 		;;
 	esac
 

so now in radio config you have to

option intel_lar '1'
option noscan '0'
option channel '149'
option country 'XX'

so you can operate this.

Also yep, It does work even if theres no other 5GHz radio broadcasting around. Just set the country properly. (It seems to accept the hint.)
And even if theres other APs around broadcasting the wrong country, channel 149 is always available on all countries except Qatar.
Feel free to try ;)

@ghost
Copy link
Author

ghost commented Sep 19, 2022

@aiamadeus @coolsnowwolf I think this is good enough.

@backslashxx
Copy link

I need some help . maybe my steps were wrong ,please see my steps in word file .

please help me, tks! my wrong steps.docx

you need to add the hostapd.sh edit

@qq897042818
Copy link

I have edit /hostapd/files/hostapd.sh, but still phyX self-managed country is CN,Any other comment ?
hostapd.zip

@backslashxx
Copy link

@qq897042818 seems about right, cant open an AP on channel 149~161?

@qq897042818
Copy link

qq897042818 commented Dec 4, 2022

@backslashxx Yes, only 2.4g 144M is available now

image

@backslashxx
Copy link

backslashxx commented Dec 4, 2022

@backslashxx Yes, only 2.4g 144M is available now

image

this is right
show me "iw phy"

you can also plainly try to edit /etc/config/wireless

edit these lines

option intel_lar '1'
option noscan '0'
option channel '149'
option country 'CN'

after editing, in ssh,

# wifi reload

if it doesnt work, show me /etc/config/wireless and logread dump

@backslashxx
Copy link

backslashxx commented Dec 5, 2022

hostapd-phy0.conf.txt iwphy.txt wireless.txt dmesg.txt

heres the issue

		* 5180 MHz [36] (22.0 dBm) (no IR)
		* 5200 MHz [40] (22.0 dBm) (no IR)
		* 5220 MHz [44] (22.0 dBm) (no IR)
		* 5240 MHz [48] (22.0 dBm) (no IR)
		* 5260 MHz [52] (22.0 dBm) (no IR, radar detection)
		* 5280 MHz [56] (22.0 dBm) (no IR, radar detection)
		* 5300 MHz [60] (22.0 dBm) (no IR, radar detection)
		* 5320 MHz [64] (22.0 dBm) (no IR, radar detection)
		* 5340 MHz [68] (disabled)
		* 5360 MHz [72] (disabled)
		* 5380 MHz [76] (disabled)
		* 5400 MHz [80] (disabled)
		* 5420 MHz [84] (disabled)
		* 5440 MHz [88] (disabled)
		* 5460 MHz [92] (disabled)
		* 5480 MHz [96] (disabled)
		* 5500 MHz [100] (22.0 dBm) (no IR, radar detection)
		* 5520 MHz [104] (22.0 dBm) (no IR, radar detection)
		* 5540 MHz [108] (22.0 dBm) (no IR, radar detection)
		* 5560 MHz [112] (22.0 dBm) (no IR, radar detection)
		* 5580 MHz [116] (22.0 dBm) (no IR, radar detection)
		* 5600 MHz [120] (22.0 dBm) (no IR, radar detection)
		* 5620 MHz [124] (22.0 dBm) (no IR, radar detection)
		* 5640 MHz [128] (22.0 dBm) (no IR, radar detection)
		* 5660 MHz [132] (22.0 dBm) (no IR, radar detection)
		* 5680 MHz [136] (22.0 dBm) (no IR, radar detection)
		* 5700 MHz [140] (22.0 dBm) (no IR, radar detection)
		* 5720 MHz [144] (22.0 dBm) (no IR, radar detection)
		* 5745 MHz [149] (22.0 dBm) (no IR)
		* 5765 MHz [153] (22.0 dBm) (no IR)
		* 5785 MHz [157] (22.0 dBm) (no IR)
		* 5805 MHz [161] (22.0 dBm) (no IR)
		* 5825 MHz [165] (22.0 dBm) (no IR)
		* 5845 MHz [169] (disabled)
		* 5865 MHz [173] (disabled)
		* 5885 MHz [177] (disabled)
		* 5905 MHz [181] (disabled)

so china is no IR all 5GHz channels? hmmm
try this,

iw dev phy0 scan && iw phy, tell me if any 5Ghz channels have no "no IR" after that

heres what I get

		* 5180 MHz [36] (22.0 dBm) (no IR)
		* 5200 MHz [40] (22.0 dBm) (no IR)
		* 5220 MHz [44] (22.0 dBm) (no IR)
		* 5240 MHz [48] (22.0 dBm) (no IR)
		* 5260 MHz [52] (22.0 dBm) (no IR, radar detection)
		* 5280 MHz [56] (22.0 dBm) (no IR, radar detection)
		* 5300 MHz [60] (22.0 dBm) (no IR, radar detection)
		* 5320 MHz [64] (22.0 dBm) (no IR, radar detection)
		* 5340 MHz [68] (disabled)
		* 5360 MHz [72] (disabled)
		* 5380 MHz [76] (disabled)
		* 5400 MHz [80] (disabled)
		* 5420 MHz [84] (disabled)
		* 5440 MHz [88] (disabled)
		* 5460 MHz [92] (disabled)
		* 5480 MHz [96] (disabled)
		* 5500 MHz [100] (22.0 dBm) (no IR, radar detection)
		* 5520 MHz [104] (22.0 dBm) (no IR, radar detection)
		* 5540 MHz [108] (22.0 dBm) (no IR, radar detection)
		* 5560 MHz [112] (22.0 dBm) (no IR, radar detection)
		* 5580 MHz [116] (22.0 dBm) (no IR, radar detection)
		* 5600 MHz [120] (22.0 dBm) (no IR, radar detection)
		* 5620 MHz [124] (22.0 dBm) (no IR, radar detection)
		* 5640 MHz [128] (22.0 dBm) (no IR, radar detection)
		* 5660 MHz [132] (22.0 dBm) (no IR, radar detection)
		* 5680 MHz [136] (22.0 dBm) (no IR, radar detection)
		* 5700 MHz [140] (22.0 dBm) (no IR, radar detection)
		* 5720 MHz [144] (22.0 dBm) (no IR, radar detection)
		* 5745 MHz [149] (22.0 dBm)
		* 5765 MHz [153] (22.0 dBm)
		* 5785 MHz [157] (22.0 dBm)
		* 5805 MHz [161] (22.0 dBm)
		* 5825 MHz [165] (22.0 dBm) (no IR)
		* 5845 MHz [169] (disabled)
		* 5865 MHz [173] (disabled)
		* 5885 MHz [177] (disabled)
		* 5905 MHz [181] (disabled)

as you see I can open 149,153,157 and 161

@qq897042818
Copy link

all 5g channels are disable or no-IR in china
iw scan.txt

@Github-Newbie5432
Copy link

Forgive my ignorance .... I am primarily a Windows user! :P

I looked into this sometime ago and am pleased to see that some progress has been made since then in getting 5Ghz AP mode "sort of" working at least ....

As someone else mentioned above, in Windows 11 you can share your internet connection over WiFi as a hotspot.

I tried this last night on my 12th Gen Intel NUC which has the Intel AX211 wireless card.

In the hotspot settings in Windows it allows you to select either 2.4Ghz or 5Ghz.

I selected 5Ghz and sure enough a WiFi 6 5Ghz network appeared that I could connect to.

That would suggest to me (and I apologise if I've missed something) that the hardware is capable of being a 5Ghz AP

Why would it work in Windows but then it not be possible to do the same under Linux?

Would be awesome if we could make access points out of these WiFi 6 / 6E cards, they're pretty affordable after all!

Or is the Windows "Mobile Hotspot" implementation still with the same limitations outlined above that are on Linux ie. No DFS etc. ?

@tildearrow
Copy link

Forgive my ignorance .... I am primarily a Windows user! :P

I looked into this sometime ago and am pleased to see that some progress has been made since then in getting 5Ghz AP mode "sort of" working at least ....

As someone else mentioned above, in Windows 11 you can share your internet connection over WiFi as a hotspot.

I tried this last night on my 12th Gen Intel NUC which has the Intel AX211 wireless card.

In the hotspot settings in Windows it allows you to select either 2.4Ghz or 5Ghz.

I selected 5Ghz and sure enough a WiFi 6 5Ghz network appeared that I could connect to.

That would suggest to me (and I apologise if I've missed something) that the hardware is capable of being a 5Ghz AP

Why would it work in Windows but then it not be possible to do the same under Linux?

Would be awesome if we could make access points out of these WiFi 6 / 6E cards, they're pretty affordable after all!

Or is the Windows "Mobile Hotspot" implementation still with the same limitations outlined above that are on Linux ie. No DFS etc. ?

Were there any 5GHz networks nearby? If so, can you try again under Windows on a 5GHz-less area and see whether the 5GHz option still exists?

@Github-Newbie5432
Copy link

Github-Newbie5432 commented Jan 10, 2023

Forgive my ignorance .... I am primarily a Windows user! :P
I looked into this sometime ago and am pleased to see that some progress has been made since then in getting 5Ghz AP mode "sort of" working at least ....
As someone else mentioned above, in Windows 11 you can share your internet connection over WiFi as a hotspot.
I tried this last night on my 12th Gen Intel NUC which has the Intel AX211 wireless card.
In the hotspot settings in Windows it allows you to select either 2.4Ghz or 5Ghz.
I selected 5Ghz and sure enough a WiFi 6 5Ghz network appeared that I could connect to.
That would suggest to me (and I apologise if I've missed something) that the hardware is capable of being a 5Ghz AP
Why would it work in Windows but then it not be possible to do the same under Linux?
Would be awesome if we could make access points out of these WiFi 6 / 6E cards, they're pretty affordable after all!
Or is the Windows "Mobile Hotspot" implementation still with the same limitations outlined above that are on Linux ie. No DFS etc. ?

Were there any 5GHz networks nearby? If so, can you try again under Windows on a 5GHz-less area and see whether the 5GHz option still exists?

Yes there were 5Ghz networks nearby - unfortunately seeing as I live in a built-up suburb I don't have a "5Ghz-less area" to try (where I would have a computer available to test!)

Maybe it works as long as there are 5GHz networks around?

@xpratg
Copy link

xpratg commented Aug 25, 2023

Hi thanks for showing us. Can you help me to implement this change to an OpenWRT x86 instance? I`m trying to use an ax200 card as an AP in a proxmox OpenWRT vm.

Thanks in advance!

This issue was closed.
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

8 participants