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

wifi:Channel number 13 is out of range from 1 to 11 in country code cc=01 #21

Closed
klamath1977 opened this issue Feb 20, 2025 · 6 comments · Fixed by #23
Closed

wifi:Channel number 13 is out of range from 1 to 11 in country code cc=01 #21

klamath1977 opened this issue Feb 20, 2025 · 6 comments · Fixed by #23
Assignees
Labels
bug Something isn't working

Comments

@klamath1977
Copy link

When I Try to deauth my wifi network for test, i get cc error,

Can I change the country code in accordin with my location?

E (29702) wifi:Channel number 13 is out of range from 1 to 11 in country code cc=01 .
E (29702) wifi_controllera:main: Error setting WiFi Access Point configuration: ESP_ERR_INVALID_ARG

@JahazielLem
Copy link
Contributor

Hi @klamath1977,

We are currently working on this issue and believe we have a patch for it. However, before proceeding, could you provide more details about your country code? Based on the logs, I assume you're in Japan or Europe, given the channel range you're using. Also, did you compile the code yourself?

In our production builds, we typically disable logs, so this behavior might differ from what you're seeing.

Looking forward to your response!
Regards

@JahazielLem JahazielLem added the bug Something isn't working label Feb 20, 2025
@klamath1977
Copy link
Author

Hello @JahazielLem,
I came from Europe/Italy,
and yes, I can compile the code from myself, I have a macbook pro with macos 15 and yesterday I have installed esp-idf v5.3.1 and all I need to compile minino in according with minino developer wiki.
I just test it and work wery well.

thanks for fast reply, I'm waiting your forward.
Regards

@JahazielLem
Copy link
Contributor

Hello @klamath1977
I created a branch named contrycode (sorry for the typo). In this branch, I added the necessary code to set up the country code for Europe and Japan. It would be great if you could compile and test this branch.

I believe this should work, but due to our country's limitations, we can't be completely sure until it's tested in a European or Japanese region. You don't need to do anything else—just compile, upload the code, and try running the deauth app again.

Let me know how it goes!

@klamath1977
Copy link
Author

klamath1977 commented Feb 22, 2025

edit: Channel 14 are forbinned in Europe, I just edit a post.

Hi @JahazielLem
I compile contrycode branch, and seem to be work with wifi channel 12, 13
I just edit firmware/components/wifi_controller/wifi_controller.c

wifi_country_t conf/ig = {
.cc = "IT", ----------- > #change JP to IT
.schan = 1,
.nchan = 13, ----------- > #change 14 to 13 for use in Europe
.policy = WIFI_COUNTRY_POLICY_AUTO,

minino-noota-firmware-1.1.7.1cc-it.zip
minino-ota-firmware-1.1.7.1cc-it.zip

thanks

@klamath1977
Copy link
Author

klamath1977 commented Feb 26, 2025

I have compile new contrycode commit (thanks @Otrebor671)
And now I can change contrycode direct from minino menu.

great!

@JahazielLem
Copy link
Contributor

@klamath1977 Nice! Thanks for testing the commit, your feedback helps us with the implementation of this configuration.

We will be releasing version 1.1.7.2 in the coming days.

If you encounter any further issues with frequencies or country codes in the applications, please let us know.
Regards

@JahazielLem JahazielLem linked a pull request Feb 26, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants