All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darko <darko@veze.net>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Country code or else hidden problem
Date: Mon, 26 Jan 2009 20:54:50 +0100	[thread overview]
Message-ID: <200901262054.50858.darko@veze.net> (raw)

???? 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 <lrodriguez@atheros.com>
> 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 <lrodriguez@atheros.com>
> ---
> ?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
<Ctrl-C>
#iw reg set DE
#hostapd hostapd.conf

Darko

             reply	other threads:[~2009-01-26 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-26 19:54 Darko [this message]
2009-01-26 21:53 ` [ath9k-devel] Country code or else hidden problem Luis R. Rodriguez
  -- strict thread matches above, loose matches on Subject: below --
2009-01-26 17:02 Darko
2009-01-26 17:33 ` Luis R. Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901262054.50858.darko@veze.net \
    --to=darko@veze.net \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.