From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 8 20:00:53 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 796FC16A420 for ; Wed, 8 Feb 2006 20:00:53 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CED943D46 for ; Wed, 8 Feb 2006 20:00:52 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id k18K0oo7064543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Feb 2006 12:00:51 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <43EA4E9A.7080705@errno.com> Date: Wed, 08 Feb 2006 12:03:38 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5 (X11/20060117) MIME-Version: 1.0 To: Jiri Mikulas References: <43E9DCA0.4060704@mikulas.com> In-Reply-To: <43E9DCA0.4060704@mikulas.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: ath countrycode X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2006 20:00:53 -0000 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