All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] AR9380 + hostapd + HT over 802.11a
Date: Tue, 31 May 2011 11:06:22 -0700	[thread overview]
Message-ID: <4DE52E1E.90903@candelatech.com> (raw)
In-Reply-To: <4DE52724.2040300@ionic.de>

On 05/31/2011 10:36 AM, Mihai Moldovan wrote:
> Hey all,
>
> I'm having a "problem" again. ;)
>
> Today I got my AR9380 card and wanted to set it up on 802.11a (5GHz)
> with HT40 (802.11n).
>
> Although enabling 802.11d and setting the regulatory domain to "DE"
> (Germany), I wasn't able to bring up the card on any 5GHz channel in AP
> mode.
>
> Finding some "patch" for ath9k which disabled NO_IBSS, RADAR_SCANNING
> and PASSIVE_SCAN, I was able to bring the card up on 5GHz with HT (and
> finally get 300MBit max rate.)
>
> I feel that's the wrong approach and would like to ask how to really do
> this kind of stuff.
>
> Also: as the card is currently running on 5GHz, I'd like to put another
> card up running on 2.4GHz for legacy hardware not capable of 802.11a
> (for instance my Android phone.)
>
> Is there anything I should pay attention to? For instance using another
> ESSID and (naturally) using some 2.4GHz channel. In my experience,
> running two cards on the same ESSID on different channels doesn't work
> well and confuses STAs, leading to connection drops and unrecoverable
> states.
>
> Any help is highly appreciated.

Probably your NIC is in regdomain 0x6a or similar.

If you see something like this in your logs that is the problem:


ath: EEPROM regdomain: 0x6a
ath: EEPROM indicates we should expect a direct regpair map
ath: Country alpha2 being used: 00
ath: Regpair used: 0x6a

cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)


You can over-ride this with a patch similar to this one:
http://patches.aircrack-ng.org/ath9k_regdomain_override.patch

(That patch may not apply to your kernel, but it's not too hard to
make it work.)  Find your domain for DE and just use that.  I used
0x0, which evidently is basically US (here in the USA) to get some
of the 5Ghz channels working in AP mode).

Note that you may lose 'official' support by doing this, but as far
as I can tell, as long as you use the correct domain with 'iw reg set'
you will still be in regulatory compliance as it chooses the minimal
set of features supported by the NIC and whatever 'iw reg set' does.

If you use 0x0 and 'iw set US' then you are likely out of compliance
in Germany, for instance.

Thanks,
Ben

>
> Best regards,
>
>
> Mihai
>
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

  parent reply	other threads:[~2011-05-31 18:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31 17:36 [ath9k-devel] AR9380 + hostapd + HT over 802.11a Mihai Moldovan
2011-05-31 17:56 ` Peter Stuge
2011-05-31 18:17   ` Mihai Moldovan
2011-05-31 18:06 ` Ben Greear [this message]
2011-05-31 18:29   ` Mihai Moldovan
2011-05-31 18:33     ` Ben Greear
2011-05-31 18:38       ` Mihai Moldovan
2011-05-31 18:39         ` Mihai Moldovan
2011-05-31 19:36         ` Mihai Moldovan
2011-05-31 19:48           ` Ben Greear
2011-05-31 20:00             ` Mihai Moldovan
2011-06-01  7:01               ` Mihai Moldovan
2011-06-01 14:31                 ` Mihai Moldovan
2011-06-01 14:45                   ` Mihai Moldovan
2011-06-01 17:53               ` Ben Greear
2011-06-01 18:37                 ` Mihai Moldovan

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=4DE52E1E.90903@candelatech.com \
    --to=greearb@candelatech.com \
    --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.