From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darko Date: Mon, 26 Jan 2009 20:54:50 +0100 Subject: [ath9k-devel] Country code or else hidden problem Message-ID: <200901262054.50858.darko@veze.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org ???? Monday 26 January 2009 18:33:46 ?????????: > On Mon, Jan 26, 2009 at 09:02:06AM -0800, Darko wrote: > > Hi, > > > > I have bought an DWA 547 card recently, after first unsuccessful try with > > TP-link WN861N ?(same problem as > > https://lists.ath9k.org/pipermail/ath9k-devel/2008-October/000450.html) > > As client DWA 547 works ok ( didn't try 802.11n, have no such AP). > > As AP followed instructions from http://wireless.erley.org/git.html > > Kernel is 2.6.29-rc2-wl taken from git 24.01.2009 > > hostapd is 0.6.7 > > iw is 0.9.9 > > OS is slackware 12.2 > > > > so: > > #modprobe ath9k debug=0x00000080 > > Thanks for trying with this. > > > #dmesg > > ... > > [ 1019.585770] ath9k: 0.1 > > [ 1019.585872] ath9k 0000:02:0a.0: PCI INT A -> Link[LNKF] -> GSI 11 > > (level, low) -> IRQ 11 > > [ 1020.011640] ath9k: Country alpha2 being used: &A > > This is fixed by the patch attached. > > From: Luis R. Rodriguez > Date: Mon, 26 Jan 2009 06:41:48 -0800 > Subject: [PATCH] ath9k: fix debug print on regd > > With debugging enabled and with ATH_DBG_REGULATORY > selected we wouldn't get the full print out of one line, > reason is we used "," instead of nothing to separate two > lines. > > Signed-off-by: Luis R. Rodriguez > --- > ?drivers/net/wireless/ath9k/regd.c | ? ?2 +- > ?1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/wireless/ath9k/regd.c > b/drivers/net/wireless/ath9k/regd.c index 90f0c98..ec88f78 100644 > --- a/drivers/net/wireless/ath9k/regd.c > +++ b/drivers/net/wireless/ath9k/regd.c > @@ -447,7 +447,7 @@ int ath9k_regd_init(struct ath_hal *ah) > ??????} > > ??????DPRINTF(ah->ah_sc, ATH_DBG_REGULATORY, > -?????????????"Country alpha2 being used: %c%c\n", > +?????????????"Country alpha2 being used: %c%c\n" > ??????????????"Regpair detected: 0x%0x\n", > ??????????????ah->alpha2[0], ah->alpha2[1], > ??????????????ah->regpair->regDmnEnum); Thanks for fast answer. If everyone I work with act so fast I would be a rich and consequently you will be rich too :) (sorry for my English). It works now. Two new lines in dmesg are: [ ?620.728161] ath9k: Country alpha2 being used: AM [ ?620.728173] Regpair detected: 0x30 Little observation, more connected to hostapd than ath9k, but it can help someone. I don't know if it is specific to D-Link DWA 547, but it looks like general one. Hostapd can't start twice with same country set. It's complaining: Failed to set country code One solution is (in hostapd.conf country code is US): #hostapd hostapd.conf #iw reg set DE #hostapd hostapd.conf Darko