I found a strange phenomenon.
My Raspberry Pi has WIFI function. When I set the channel to auto or the highest 165, I found that it is not working, and it tells me that it has been disabled. I don't know why this happens. I found from many forums that people generally have this problem. I am using 5G instead of 2.4G!
Just like what this forum said
DFS ?
Is chan 165 supported in China ?
post the output of ubus call system board
, and lsusb
.
I don't know which channels are legal in China, but I think that even if Chinese law does not allow me to use channel 165, or because of any other problems in the country that prevent me from using channel 165, it should not affect my determination to use it. In other words, you can stop me from doing this, but whether I do it or not is up to me, haha!
I mainly want to test it.
root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.167 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 2109:3431 USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.167 xhci-hcd xHCI Host Controller
root@OpenWrt:~# ubus call system board
{
"kernel": "5.15.167",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 3",
"model": "Raspberry Pi 4 Model B Rev 1.4",
"board_name": "raspberrypi,4-model-b",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.5",
"revision": "r24106-10cc5fcd00",
"target": "bcm27xx/bcm2711",
"description": "OpenWrt 23.05.5 r24106-10cc5fcd00"
}
}
can't read Chinese, but 80MHz seems to be a no go, on 165 ?
According to this, frequency 5835~5885MHz(part of Ch. 171) isn't available in China, which means you can't use channel 165 @ 80MHz, unless you patch the firmware yourself to get over this restriction.
BTW, If you're going to post in an english forum you better post everything in english including screenshots. Thank you.
Please refrain from suggestions that violate any law (forum rule).
The image doesn't indicate whether it supports 80MHz, so let's assume it doesn't.
But I tried to adjust it to 20/40MHz, and it still says it's disabled!
I understand, but my interface is in Chinese, which is really a headache
So if I have to use channel 165, which countries should I choose? Because I don't want to be bound by any laws that would prevent me from doing more experiments
for whom ?
we didn't force you to use Chinese.
are you by any chance setting this up in a lab ?
did you check the table @oing9179 posted ?
iw list
shows available channel map from regdb X hardware cap.
It looks like Ch 165(part of Ch 171) is permitted in China but you said it's still disabled, in this case run command iw reg get
, if the output says something like self-managed
then it's going to be another story.
Have you set the country code? The default is unset, which makes wifi operation very limited.
The band plan (not an official regulation, but followed by the driver nonetheless) will permit only 20 MHz on 165 unless channels higher than 165 are also supported by hardware and allowed by regulation. Neither of those is true in this case.
iw reg get is cosmetic poster, sometimes it wanders off, like ath10k shows US and mt76 nothing. no matter what is actually programmed in radio. You have to use full list instead.
I don't have a lab to try these operations, I can only try some channels I have seen, but as far as I know, Chinese routers seem to support 165, maybe I remembered it wrong!
Do you mean I need to set it to 20Mhz? Instead of forcing 80MHz? I tried 40MHz and it still didn't work, but I haven't tried 20MHz yet
That should've been Step 1. Let us know if it works.