Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Feb 2006 12:03:38 -0800
From:      Sam Leffler <sam@errno.com>
To:        Jiri Mikulas <konfer@mikulas.com>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: ath countrycode
Message-ID:  <43EA4E9A.7080705@errno.com>
In-Reply-To: <43E9DCA0.4060704@mikulas.com>
References:  <43E9DCA0.4060704@mikulas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43EA4E9A.7080705>