Page 1 of 1

Choosing country-codes

Posted: Fri Feb 10, 2012 5:12 pm
by hnl_dk
I guess this is a combination of a bugreport and a featurerequest...

Checking dmesg, I can see that the country is set to US, even though I am from Denmark.

Code: Select all

ath: Country alpha2 being used: US
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
As it does not seem to work, would it be nice to be able to set the "country" from the webinterface.
Either use this to set it to Denmark

Code: Select all

iw reg set DK
Or use this to set it to Europe

Code: Select all

iw reg set EU
You can see all the accepted countrycodes here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Re: Choosing country-codes

Posted: Sun Feb 12, 2012 5:38 pm
by hnl_dk
While looking at another thread ( http://www.gargoyle-router.com/phpbb/vi ... 092#p11092 ), it looks like CONFIG_ATH_USER_REGD=y needs to be set in http://www.gargoyle-router.com/gargoyle ... usb/config , to make it possible to set the correct country/region.

Re: Choosing country-codes

Posted: Fri Feb 17, 2012 5:13 am
by b4nd0ler0
I strongly subscribe this one. We should be able to use all legally available 5GHz channels for EU countries.

My flat is on the 9th floor of one of the tallest buildings on the neighbourhood. I pick up tons of wlans from the living room and even more from the balcony. The 2.4GHz band is seriously overcrowded here.
Inssider shows a right mess, particularly in channels 1, 6 & 11.

When I got a WNDR3700 a year ago mine was the only 5g wlan around but now there are another 5 already and lately more keep appearing every couple of months so I reckon the more channels available the better for all of us future-wise.

I would be grateful if we could do this with Gargoyle without having to compile our own build.

Adios

Re: Choosing country-codes

Posted: Fri Feb 17, 2012 7:15 am
by hnl_dk
I hope that I will be able to test it this weekend, if my health allows me to do so.

Re: Choosing country-codes

Posted: Thu Aug 28, 2025 4:00 pm
by hillbilly
I have an enhancement request on the DFS (5GHz band)

I'm using the latest build 1.15.X (Built 20250330-2253 on TP-Link Archer A6 v3. I noticed that the 5Ghz radio often gets disabled (due to DFS) on any channel except channel 36.
And due to the "default" setting, the available channels goes from 36 to 149.

In OpenWrt, if the correct country code is set, the channel list actually goes up to channel 165

OpenWrt: Network -> Wireless -> WLan 5Ghz (Edit) -> Advanced Settings
Change country code from default to the actual country. In my case NZ. Save.
Back on the General Setup tab, frequencies 149 to 165 appears.


I found a post on this subject: https://ounapuu.ee/posts/2024/11/11/openwrt-dfs/
You could enable "auto" to allow it to select from a range of channels.

It'll good if the Country option and the "auto" setting be included in he next release.

Thank you.

Re: Choosing country-codes

Posted: Thu Aug 28, 2025 9:28 pm
by Lantis
hillbilly wrote:
Thu Aug 28, 2025 4:00 pm
I have an enhancement request on the DFS (5GHz band)

I'm using the latest build 1.15.X (Built 20250330-2253 on TP-Link Archer A6 v3. I noticed that the 5Ghz radio often gets disabled (due to DFS) on any channel except channel 36.
And due to the "default" setting, the available channels goes from 36 to 149.

In OpenWrt, if the correct country code is set, the channel list actually goes up to channel 165

OpenWrt: Network -> Wireless -> WLan 5Ghz (Edit) -> Advanced Settings
Change country code from default to the actual country. In my case NZ. Save.
Back on the General Setup tab, frequencies 149 to 165 appears.


I found a post on this subject: https://ounapuu.ee/posts/2024/11/11/openwrt-dfs/
You could enable "auto" to allow it to select from a range of channels.

It'll good if the Country option and the "auto" setting be included in he next release.

Thank you.
Country code can be set in the Connection -> Advanced page. Are you not able to see this for some reason? There could be an issue.

There have been A LOT of changes in how channels are handled in OpenWrt that we are behind on. Channel lists, preferred channels, scan channels.
They will be considered in the future but not available right now sorry.