Choosing country-codes

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Post Reply
hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Choosing country-codes

Post 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
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: Choosing country-codes

Post 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.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

b4nd0ler0
Posts: 8
Joined: Tue Nov 22, 2011 8:26 am

Re: Choosing country-codes

Post 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

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: Choosing country-codes

Post by hnl_dk »

I hope that I will be able to test it this weekend, if my health allows me to do so.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hillbilly
Posts: 15
Joined: Wed Nov 22, 2017 3:53 pm

Re: Choosing country-codes

Post 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.

Lantis
Moderator
Posts: 7145
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia
Contact:

Re: Choosing country-codes

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog

Post Reply