From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Simon Date: Wed, 8 Dec 2010 14:03:07 +0100 Subject: [ath9k-devel] Country code setting issue In-Reply-To: References: Message-ID: <201012081403.07350.simon_alex@web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org > No. ath9k cards always respect the regulatory domain programmed into > the hardware's EEPROM, the APIs for users only let the user help > compliance further, never to allow more channels. Which is a really stupid behaviour as the country code never is correctly set. I have never seen any card in my country with the correct country code in its eeprom. Additionally, most card have 00 in their eeprom which means "default". Personally i would interprete "default" as "ask cfg80211" or "dont give a driver hint", but some braindead programmer intrepreted it as "United States". If you get the message when loading "EEPROM indicates default country code should be used", iw reg get will show you US! The most easiest fix for this case is to look for reg->country_code = CTRY_UNITED_STATES; in drivers/net/wireless/ath/regd.c and change it to your country from regd.h.