From: cwr at netcom.co.uk Date: Thu, 09 Sep 2010 08:21:57 +0100 Subject: [ath9k-devel] Atheros 5008 and changing CRDA Message-ID: <20100909082157.1216193eyek3xue8@webmail.netcom.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org I've been trying to get an Atheros card to accept the GB regulatory domain; this is on a 2.6.34 kernel, with the latest crda and regulatory database. I'm using the card in Master mode via hostapd, and it works, that is, I can connect to it from another 802.11g machine. As far as setting up the regulatory domain is concerned, I get the following results: lspci gives me: 01:0e.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01) In dmesg, I get: ... cfg80211: Calling CRDA to update world regulatory domain ... ath: EEPROM regdomain: 0x809c ath: EEPROM indicates we should expect a country code ath: doing EEPROM country->regdmn map search ath: country maps to regdmn code: 0x52 ath: Country alpha2 being used: CN ath: Regpair used: 0x52 phy0: Selected rate control algorithm 'ath9k_rate_control' cfg80211: Calling CRDA for country: CN 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=0xf8060000, irq=17 ... where CN is apparently China. Running "iw reg get" then gives: 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 ie. probably not China. Where was that changed? Running "iw reg set GB" then gives nothing, ie. no error message, after which the results for "iw reg get" are unchanged, the same as those above. Can the 00 domain be changed to GB, or is it some sort of default? Running "iwlist channel" gives: wlan0 11 channels in total; available frequencies : Channel 01 : 2.412 GHz Channel 02 : 2.417 GHz Channel 03 : 2.422 GHz Channel 04 : 2.427 GHz Channel 05 : 2.432 GHz Channel 06 : 2.437 GHz Channel 07 : 2.442 GHz Channel 08 : 2.447 GHz Channel 09 : 2.452 GHz Channel 10 : 2.457 GHz Channel 11 : 2.462 GHz Current Frequency=2.457 GHz (Channel 10) mon.wlan0 11 channels in total; available frequencies : Channel 01 : 2.412 GHz Channel 02 : 2.417 GHz Channel 03 : 2.422 GHz Channel 04 : 2.427 GHz Channel 05 : 2.432 GHz Channel 06 : 2.437 GHz Channel 07 : 2.442 GHz Channel 08 : 2.447 GHz Channel 09 : 2.452 GHz Channel 10 : 2.457 GHz Channel 11 : 2.462 GHz Current Frequency=2.457 GHz (Channel 10) I can't tell which regulatory domain I'm in, or indeed why. or if it's possible to change the regulatory domain at all on this card. 00 seems to be some sort of world domain; does it now include GB? Thanks for any help - Will