From: Luis R. Rodriguez Date: Mon, 26 Jan 2009 15:53:24 -0800 Subject: [ath9k-devel] ath9k regulatory In-Reply-To: <5b7270f40901261537r6feaf502p5e8167b64b8bb401@mail.gmail.com> References: <5b7270f40901260535q382f98d3qa6549556332b8d91@mail.gmail.com> <20090126151302.GL22475@tesla> <5b7270f40901261008t4ab25a4cl6111b210cc38d91f@mail.gmail.com> <20090126183844.GC19242@tesla> <5b7270f40901261537r6feaf502p5e8167b64b8bb401@mail.gmail.com> Message-ID: <43e72e890901261553t2ab2b940s5ccb145b1f8563ef@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Mon, Jan 26, 2009 at 3:37 PM, Zoltan Devai wrote: > Whoops, here's the CC for the list. > > 2009/1/26 Luis R. Rodriguez >> On Mon, Jan 26, 2009 at 10:08:55AM -0800, Zoltan Devai wrote: >> > 2009/1/26 Luis R. Rodriguez > >> > On Mon, Jan 26, 2009 at 05:35:13AM -0800, Zoltan Devai wrote: >> > > I'm using a TP-Link TL-WN861N card. What could be the reason that channels 12 and 13 are >> > > not allowed ? >> > > Using compat-wireless 2009-01-25. > > Thanks for the explanation on the regulatory. > >> > Is there a way to give the users preference priority ? >> >> The user can always specifify the regulatory domain that is the default. In >> ath9k's case the EEPROM is always respected though. > >> > * 2462 MHz [11] (20.0 dBm) >> > * 2467 MHz [12] (disabled) >> > * 2472 MHz [13] (disabled) >> > * 2484 MHz [14] (disabled) >> >> Yeap, this is by design -- your card has the "US" regulatory domain >> and as such has those channels are disabled and you cannot enable them. >> Reason for this is the device was not calibrated to operate on those >> channels and as such proper behaviour cannot be guaranteed. For cards >> where proper behaviour can be guaranteed you will be able to enable >> those channels like on the b43 driver. > > The EEP_REG_0 is actually 0x0000 on my card and the driver defaults US for that. > Is that a valid value to put in the EEPROM ? As per this implementation -- yes, it seems that is the case. I am however not sure how common this is. I'll try to find out. > Or was just the card > manufacturer sloppy and it rather means "don't care", in which case the driver > should enable all channels ? It really depends on who manufactured the card and their decision on how to support the device and how the vendor documents this for them. The driver just follows this architectural design. That is why regulatory is such a pain in the ass -- vendor involvement is key. Luis