From: Zoltan Devai Date: Mon, 26 Jan 2009 19:08:55 +0100 Subject: [ath9k-devel] ath9k regulatory In-Reply-To: <20090126151302.GL22475@tesla> References: <5b7270f40901260535q382f98d3qa6549556332b8d91@mail.gmail.com> <20090126151302.GL22475@tesla> Message-ID: <5b7270f40901261008t4ab25a4cl6111b210cc38d91f@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 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. > I take it the second DE regulatory request was yours? That's coming from loading cfg80211 with ieee80211_regdom=DE. > If your regulatory domain does not allow for it you will not be able to use > that > channel. I'm a bit confused now about who tells what the regulatory domain is. Does the (EEPROM on the) card override the user setting ? Is there a way to give the users preference priority ? > To confirm you can recompile ath9k with debugging enabled with the patch > attached applied. > Gives me this: # modprobe ath9k debug=0x00000080 ath9k: 0.1 PCI: enabling device 0000:00:02.0 (0140 -> 0142) ath9k: Country alpha2 being used: US Regpair detected: 0x3a phy0: Selected rate control algorithm 'ath9k_rate_control' cfg80211: Calling CRDA for country: US Registered led device: ath9k-phy0:radio Registered led device: ath9k-phy0:assoc Registered led device: ath9k-phy0:tx Registered led device: ath9k-phy0:rx phy0: Atheros AR5416 MAC/BB Rev:2 AR2122 RF Rev:81: mem=0xc2900000, irq=27 cfg80211: Regulatory domain changed to country: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) (5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 1700 mBm) (5250000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2000 mBm) (5490000 KHz - 5710000 KHz @ 40000 KHz), (600 mBi, 2000 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) If I do: # iw reg set DE cfg80211: Calling CRDA for country: DE command failed: No such file or directory (-2) cfg80211: Regulatory domain changed to country: DE (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm) (5150000 KHz - 5255000 KHz @ 40000 KHz), (N/A, 2301 mBm) (5470000 KHz - 5650000 KHz @ 40000 KHz), (N/A, 3000 mBm) But iw list still is: # iw list Wiphy phy0 Band 1: HT capabilities: 0x104e * 20/40 MHz operation * SM PS disabled * 40 MHz short GI * max A-MSDU len 3839 * DSSS/CCK 40 MHz HT A-MPDU factor: 0x0003 (65535 bytes) HT A-MPDU density: 0x0006 (8 usec) HT MCS set: ff ff 00 00 00 00 00 00 00 00 00 00 01 00 00 00 Frequencies: * 2412 MHz [1] (20.0 dBm) * 2417 MHz [2] (20.0 dBm) * 2422 MHz [3] (20.0 dBm) * 2427 MHz [4] (20.0 dBm) * 2432 MHz [5] (20.0 dBm) * 2437 MHz [6] (20.0 dBm) * 2442 MHz [7] (20.0 dBm) * 2447 MHz [8] (20.0 dBm) * 2452 MHz [9] (20.0 dBm) * 2457 MHz [10] (20.0 dBm) * 2462 MHz [11] (20.0 dBm) * 2467 MHz [12] (disabled) * 2472 MHz [13] (disabled) * 2484 MHz [14] (disabled) Thanks, Zoltan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090126/d39cc26f/attachment.htm