-
Notifications
You must be signed in to change notification settings - Fork 178
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
Some channels are disabled regardless of the regulatory domain #35
Comments
Kudos for the detailed analyses 👍
How/where can/should you do that?
Do you happen to know some good tutorials on the use of |
I'm not sure that the driver reacts correctly to iw reg set, but it has an "iwpriv channel_plan" command (see include/rtw_mlme_ext.h and core/rtw_mlme_ext.c) though I'm not sure it does the "right" thing either. |
If you look at os_dep/linux/ioctl_linux.c you'll see that "iwpriv channel_plan" is implemented by rtw_wx_set_channel_plan which in turn calls rtw_set_chplan_cmd. RT_CHANNEL_DOMAIN_MAX is defined in include/rtw_mlme_ext.h, where you can see the valid values for the "iwpriv channel_plan" parameter while the definitions of the various plans are in core/rtw_mlme_ext.c I investigated because I see with iw list that various channels are disabled while they shouldn't in my regdomain (ES). Using the iwpriv I see some of them enabled (at least for x seconds, I suppose for DFS but I'm not an expert on wifi issues). |
Oh, and I investigated just because I couldn't see my access point, which had the channel set to auto and it selected one of the disabled one. |
@uminokoe yes, it is listed (0bda:881a) but somehow it fails during initialization and it enters in a loop, but I didn't investigate too much. I don't absolutely need to see all channels but it bothers me that it doesn't use all legally available channels. |
I commented out that line, iw list shows all channels up to 140 as available (52-140 with radar detection). |
I could not get 5Ghz to work. After reading this post I change the channel to 36, and it now works. Thanks. |
I have my regulatory domain set to a country. This is what I get from
iw reg get
:For the same country, the matching record in
db.txt
from https://www.kernel.org/pub/software/network/wireless-regdb/ is shown below:However, when I run
iw list
, the output shows that some channels are disabled. Some channels have the flag "(no IR)", so those channels cannot be used, too.In addition, if I interpreted the regulatory domain regulation (records in
db.txt
) correctly, channels 12 and 13 in 2.4GHz should be available for use. However, this is what I get fromiw list
:As a result, if the adapter attempts to use the disabled / no-IR channels (no matter in station mode or AP mode), the operation will fail. I have been able to reproduce this issue on version 4.3.22-beta and 4.3.21.
The text was updated successfully, but these errors were encountered: