OpenWrt Forum Archive

Topic: enabling channel 14

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone...

Can I enable channel 14 without compiling OpenWrt  and installing crda and provide hacked regularity domain l ?
thanks.

I believe if you set your country to Japan then OpenWrt will use the regulatory info for it, which does have channel 14.

sometimes this is hardcoded into the eeprom and changing the regulatory info won't work

changing country code to Japan won't solve the problem because like what danitool said sometimes regularity info is hardcoded in the eeprom ( I have nano station m2). reghack allows me only to use channel 12 and 13.please help me getting around this for god's sake.

(Last edited by haythamroach on 5 Apr 2014, 00:37)

haythamroach wrote:

changing country code to Japan won't solve the problem because like what danitool said sometimes regularity info is hardcoded in the eeprom ( I have nano station m2). reghack allows me only to use channel 12 and 13.please help me getting around this for god's sake.

Compile it yourself. Alter the driver options for card to tell it to respect the users regdomain setting and then hack the regdb.txt file in the package/kernel/mac80211/files folder, editing the country information for whatever country is encoded in your eeprom and whatever country you want to change to.

It's not very hard to do. If you don't have a Linux machine, then download VirtualBox and install your distro of choice. Do a git clone of the sources, make menuconfig, select target architecture, make defconfig, then compile.

root@OpenWrt:~# iwlist wlan1 channel
wlan1     32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 14 : 2.484 GHz
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Channel 128 : 5.64 GHz
          Channel 132 : 5.66 GHz
          Channel 136 : 5.68 GHz

Disclaimer: do make sure that whatever frequencies you are using are legal wherever you live smile

thank you dl1234 for your kind reply. In this way I can use more than 1-14 channels like in ubnt airOS firmware? You know what, I live in Iraq where people don't give a fuck about something called legal frequencies, they are transmitting on frequency range 2312-2732 MHz and I'm stuck .

Yes, this would enable you to do what you want to do. Have a read of

http://wiki.openwrt.org/doc/howto/buildroot.exigence

and

http://wiki.openwrt.org/doc/howto/build

They will tell you how to go about installing the build environment and making your own binaries. The instructions are clear and the process is relatively smooth. Once it builds, go to menuconfig and choose kernel modules-->wireless drivers-->kmod-ath and make sure that "Force Atheros drivers to respect the user's regdomain settings" is turned on. Then go edit package/kernel/mac80211/files/regdb.txt - ensure you change whatever country your card comes from and the default 00 domain. This changing of the regdb.txt file isn't strictly necessary to get you channel 14, as the previous menuconfig option will allow you to select a different country, but it does give you much greater flexibility. You can change it to something like this:

country 00:
        (2402 - 2494 @ 40), (30)
        (4910 - 5835 @ 80), (30)

Just google. There's a lot of info out there about how to alter the regdb. However in OpenWrt it is hard coded into the binary, so it needs to be compiled.

Many thanks dl1234.I wish you all the best in your life.

The discussion might have continued from here.