ath countrycode

Eric Anderson anderson at centtech.com
Wed Feb 8 04:23:45 PST 2006


Jiri Mikulas wrote:
> Hello
> I have ATH cards Wistron CM9 (AR5213),
> I want to set correct countrycode to use correct channels (ETSI)
> (channels 1-13 on 11g, channels 100-140 on 11a)
> but it's "disabled'
>
> osika:/# sysctl -a dev.ath.0.countrycode=203
> sysctl: oid 'dev.ath.0.countrycode' is read only
>
> On most HW wireles AP I can switch country (for example COMPEX WPE54AG-5GHz),
> on NetBSD and Linux I can set it too (according to this article http://www.fehu.org/atheros.html )
> so I'm little bit suprised, that it's 'forbiden' on Freebsd
>
> I have
>  FreeBSD 6.0-STABLE #1: Thu Jan 19 10:40:33 CET 2006
>  dev.ath.0.countrycode: 0
>  dev.ath.0.regdomain: 0
>  hw.ath.hal.version: 0.9.14.9
>  ath0: <Atheros 5212> mem 0xff920000-0xff92ffff irq 17 at device 2.0 on pci1
>  ath0: Ethernet address: 00:0b:6b:35:46:d7
>  ath0: mac 5.9 phy 4.3 radio 3.6
>
> osika:/# ifconfig ath0 list chan
> Channel   1 : 2412  Mhz 11g          Channel  48 : 5240  Mhz 11a
> Channel   2 : 2417  Mhz 11g          Channel  50 : 5250  Mhz 11a Turbo
> Channel   3 : 2422  Mhz 11g          Channel  52 : 5260  Mhz 11a
> Channel   4 : 2427  Mhz 11g          Channel  56 : 5280  Mhz 11a
> Channel   5 : 2432  Mhz 11g          Channel  58 : 5290  Mhz 11a Turbo
> Channel   6 : 2437  Mhz 11g          Channel  60 : 5300  Mhz 11a
> Channel   7 : 2442  Mhz 11g          Channel  64 : 5320  Mhz 11a
> Channel   8 : 2447  Mhz 11g          Channel 149 : 5745  Mhz 11a
> Channel   9 : 2452  Mhz 11g          Channel 152 : 5760  Mhz 11a Turbo
> Channel  10 : 2457  Mhz 11g          Channel 153 : 5765  Mhz 11a
> Channel  11 : 2462  Mhz 11g          Channel 157 : 5785  Mhz 11a
> Channel  36 : 5180  Mhz 11a          Channel 160 : 5800  Mhz 11a Turbo
> Channel  40 : 5200  Mhz 11a          Channel 161 : 5805  Mhz 11a
> Channel  42 : 5210  Mhz 11a Turbo    Channel 165 : 5825  Mhz 11a
> Channel  44 : 5220  Mhz 11a
>
>
> Is there any way to switch countrycode on FBSD please ?
>   

Did you try setting it in /boot/loader.conf?


Eric




-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------



More information about the freebsd-mobile mailing list