ath countrycode

Sam Leffler sam at errno.com
Wed Feb 8 12:00:53 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 cannot comment on netbsd or linux but if they are using my hal I doubt 
you are actually changing the channel list and/or regulatory constraints 
when you do the sysctl.  It is possible to make that sysctl r/w though 
you'll still be constrained by the regdomain setting in the eeprom of 
the card.  I'm not sure I'll get to it before 6.1 but it should mostly 
be calling ath_hal_initchannels (sic?) to replenish the channel list and 
then propagate whatever state you need up through the driver and 
net80211 layer.  This is necessary to implement 802.11d.

Otherwise you need to force the driver to re-attach in some manner to 
get a revised channel list.  The easiest way is to unload the driver if 
built as a loadable module.

	Sam


More information about the freebsd-mobile mailing list