From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis R. Rodriguez Date: Mon, 13 Sep 2010 10:01:09 -0700 Subject: [ath9k-devel] Ath Country Code Issue In-Reply-To: References: Message-ID: <20100913170109.GD1824@tux> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Thu, Sep 09, 2010 at 09:32:02AM -0700, Bill Jordan wrote: > I have a system with 2 radios installed: an ath5k and an ath9k. The drivers are all compiled into the kernel, so the cards are initialized very early. I do not have udev running (yet); I'm doing things manually. When I run "COUNTRY=US crda", I get an intersection of 00 and US instead of just US. > > I've got some debug enabled: > > > PCI: enabling device 0000:00:01.0 (0340 -> 0342) > ath5k 0000:00:01.0: registered as 'phy0' > ath: EEPROM regdomain: 0x0 > ath: EEPROM indicates default country code should be used > ath: doing EEPROM country->regdmn map search > ath: country maps to regdmn code: 0x3a > ath: Country alpha2 being used: US > ath: Regpair used: 0x3a > ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61) > cfg80211: Calling CRDA for country: US > PCI: enabling device 0000:00:02.0 (0340 -> 0342) > ath: EEPROM regdomain: 0x0 > ath: EEPROM indicates default country code should be used > ath: doing EEPROM country->regdmn map search > ath: country maps to regdmn code: 0x3a > ath: Country alpha2 being used: US > ath: Regpair used: 0x3a > cfg80211: Calling CRDA for country: US > phy1: Atheros AR9160 MAC/BB Rev:0 AR5133 RF Rev:b0 mem=0xc48c0000, irq=27 > > sh# iw reg get > country 00: > (2402 - 2472 @ 40), (6, 20) > (2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN, NO-IBSS > (2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS > (5170 - 5250 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS > (5735 - 5835 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS > sh# COUNTRY=US crda > cfg80211: Current regulatory domain intersected: > (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > (2457000 KHz - 2472000 KHz @ 15000 KHz), (300 mBi, 2000 mBm) > (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) > (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > sh# iw reg get > country 98: > (2402 - 2472 @ 40), (3, 20) > (2457 - 2472 @ 15), (3, 20), PASSIVE-SCAN, NO-IBSS > (5170 - 5250 @ 40), (3, 17), PASSIVE-SCAN, NO-IBSS > (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS > > Since both radios are US, shouldn't I end up with the full US setting instead of an intersection? > > If I remove one of the radios, I get the US domain settings. Thank you for reporting this, this is a known bug, I will try to address soon, unless someone beats me to it. Luis