All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
@ 2009-06-09 18:35 xxiao
  2009-06-09 18:47 ` Pavel Roskin
  0 siblings, 1 reply; 7+ messages in thread
From: xxiao @ 2009-06-09 18:35 UTC (permalink / raw)
  To: ath9k-devel


you probably should use "iw" to config ath9k instead of using iwconfig. something like:

iw dev wlan0 set freq 2412
-or-
iw dev wlan0 set channel 1

cheers,
xxiao
--- On Tue, 6/9/09, Peter Tarjan <peter.tarjan@birdtelecom.hu> wrote:

> From: Peter Tarjan <peter.tarjan@birdtelecom.hu>
> Subject: [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
> To: ath9k-devel at lists.ath9k.org
> Date: Tuesday, June 9, 2009, 11:08 AM
> Hi,
> 
> I downloaded and compiled a 2.6.30rc7 kernel with ath9k.
> The kernel then recognised the following card:
> 
> 00:0e.0 Network controller: Atheros Communications Inc.
> Device 0027 (rev 01)
> ??????? Subsystem: Device 0777:4082
> 
> ??????? Flags: bus master, 66MHz, medium devsel,
> latency 168, IRQ 11
> ??????? Memory at e0080000 (32-bit,
> non-prefetchable) [size=64K]
> ??????? Capabilities: [44] Power Management version
> 2
> ??????? Kernel driver in use: ath9k
> 
> 
> Then I switched it into ad-hoc mode by "iwconfig wlan0
> mode ad-hoc" and tried to set frequency to a 5 GHz
> channel:
> 
> $ iwconfig wlan0 channel 36 
> Error for wireless request "Set Frequency" (8B04)
> :
> 
> ??? SET failed on device wlan0 ; Invalid argument.
> 
> although there are 5 Ghz channels listed:
> 
> $ iwlist wlan0 channel
> wlan0???? 24 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
> ????????? Channel 36 : 5.18 GHz
> ????????? Channel 40 : 5.2 GHz
> ????????? Channel 44 : 5.22 GHz
> ????????? Channel 48 : 5.24 GHz
> 
> ????????? Channel 52 : 5.26 GHz
> ????????? Channel 56 : 5.28 GHz
> ????????? Channel 60 : 5.3 GHz
> ????????? Channel 64 : 5.32 GHz
> ????????? Channel 149 : 5.745 GHz
> ????????? Channel 153 : 5.765 GHz
> ????????? Channel 157 : 5.785 GHz
> 
> ????????? Channel 161 : 5.805 GHz
> ????????? Channel 165 : 5.825 GHz
> ????????? Current Frequency=2.412 GHz (Channel 1)
> 
> So my question is whether there is a way to use A-band
> channel in ad-hoc mode.
> 
> Thanks for any answer in advance.
> 
> 
> --
> Peter Tarjan
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
  2009-06-09 18:35 [ath9k-devel] ad-hoc mode using 5 GHz channel (A band) xxiao
@ 2009-06-09 18:47 ` Pavel Roskin
  2009-06-09 20:47   ` Luis R. Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Roskin @ 2009-06-09 18:47 UTC (permalink / raw)
  To: ath9k-devel

On Tue, 2009-06-09 at 11:35 -0700, xxiao wrote:
> you probably should use "iw" to config ath9k instead of using iwconfig. something like:
> 
> iw dev wlan0 set freq 2412
> -or-
> iw dev wlan0 set channel 1

I don't think that would make any difference.  However, "iw list" would
show which frequencies are enabled for the device and "iw reg get" would
show the regulatory settings.

I guess the regulatory setting disables beaconing in the 5 GHz range.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
  2009-06-09 18:47 ` Pavel Roskin
@ 2009-06-09 20:47   ` Luis R. Rodriguez
  2009-06-10  9:35     ` Peter Tarjan
  0 siblings, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2009-06-09 20:47 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Jun 9, 2009 at 11:47 AM, Pavel Roskin<proski@gnu.org> wrote:
> On Tue, 2009-06-09 at 11:35 -0700, xxiao wrote:
>> you probably should use "iw" to config ath9k instead of using iwconfig. something like:
>>
>> iw dev wlan0 set freq 2412
>> -or-
>> iw dev wlan0 set channel 1
>
> I don't think that would make any difference. ?However, "iw list" would
> show which frequencies are enabled for the device and "iw reg get" would
> show the regulatory settings.
>
> I guess the regulatory setting disables beaconing in the 5 GHz range.

Beaconing is disabled when no-ibss or passive scan flags are enabled
(or dfs) . You would see something like this:

                        * 5180 MHz [36] (30.0 dBm) (passive scanning, no IBSS)
                        * 5200 MHz [40] (30.0 dBm) (passive scanning, no IBSS)
                        * 5220 MHz [44] (30.0 dBm) (passive scanning, no IBSS)
                        * 5240 MHz [48] (30.0 dBm) (passive scanning, no IBSS)

If you don't see these flags then beaconing should be allowed.

  Luis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
  2009-06-09 20:47   ` Luis R. Rodriguez
@ 2009-06-10  9:35     ` Peter Tarjan
  2009-06-10 15:27       ` Pavel Roskin
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Tarjan @ 2009-06-10  9:35 UTC (permalink / raw)
  To: ath9k-devel

Hi all,

thanks for all the answers. I checked:

~# iw dev wlan0 info
Band 1:
        Frequencies:
                * 2412 MHz
                * 2417 MHz
                * 2422 MHz
                * 2427 MHz
                * 2432 MHz
                * 2437 MHz
                * 2442 MHz
                * 2447 MHz
                * 2452 MHz
                * 2457 MHz
                * 2462 MHz
                * 2467 MHz (disabled)
                * 2472 MHz (disabled)
                * 2484 MHz (disabled)
        Bitrates:
                * 1.0 Mbps
                * 2.0 Mbps (short preamble supported)
                * 5.5 Mbps (short preamble supported)
                * 11.0 Mbps (short preamble supported)
                * 6.0 Mbps
                * 9.0 Mbps
                * 12.0 Mbps
                * 18.0 Mbps
                * 24.0 Mbps
                * 36.0 Mbps
                * 48.0 Mbps
                * 54.0 Mbps
Band 2:
        Frequencies:
                * 5180 MHz (passive scanning, no IBSS)
                * 5200 MHz (passive scanning, no IBSS)
                * 5220 MHz (passive scanning, no IBSS)
                * 5240 MHz (passive scanning, no IBSS)
                * 5260 MHz (passive scanning, no IBSS, radar detection)
                * 5280 MHz (passive scanning, no IBSS, radar detection)
                * 5300 MHz (passive scanning, no IBSS, radar detection)
                * 5320 MHz (passive scanning, no IBSS, radar detection)
                * 5500 MHz (disabled)
                * 5520 MHz (disabled)
                * 5540 MHz (disabled)
                * 5560 MHz (disabled)
                * 5580 MHz (disabled)
                * 5600 MHz (disabled)
                * 5620 MHz (disabled)
                * 5640 MHz (disabled)
                * 5660 MHz (disabled)
                * 5680 MHz (disabled)
                * 5700 MHz (disabled)
                * 5745 MHz (passive scanning, no IBSS)
                * 5765 MHz (passive scanning, no IBSS)
                * 5785 MHz (passive scanning, no IBSS)
                * 5805 MHz (passive scanning, no IBSS)
                * 5825 MHz (passive scanning, no IBSS)
        Bitrates:
                * 6.0 Mbps
                * 9.0 Mbps
                * 12.0 Mbps
                * 18.0 Mbps
                * 24.0 Mbps
                * 36.0 Mbps
                * 48.0 Mbps
                * 54.0 Mbps

I am not sure what does it mean. It is clear that "Band 2" frequencies are
unavailable in ad-hoc mode. Is it a limitation that I can bypass?
By the way the maximum bitrate shows me that the card is not using "n"
mode...
The syntax of the "iw" command I used seems to be different, e.g. "iw dev
wlan0 set channel 1" gave me "No such object type set" error message.

Thanks for your answer again, Peter T.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090610/325d4631/attachment-0001.htm 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
  2009-06-10  9:35     ` Peter Tarjan
@ 2009-06-10 15:27       ` Pavel Roskin
  2009-06-10 21:00         ` Luis R. Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Roskin @ 2009-06-10 15:27 UTC (permalink / raw)
  To: ath9k-devel

On Wed, 2009-06-10 at 11:35 +0200, Peter Tarjan wrote:

> I am not sure what does it mean. It is clear that "Band 2" frequencies
> are unavailable in ad-hoc mode. Is it a limitation that I can bypass?

If your regulatory settings are correct, you shouldn't.  But it looks
like you are using world regulatory settings.  Try using "iw reg set HU"
if you are in Hungary.

> By the way the maximum bitrate shows me that the card is not using "n"
> mode...

I believe you are using an old version of iw that cannot report the
802.11n capabilities.  With the new iw, you'll need to use "iw list", as
the "iw info" command would report very little for the network devices.

> The syntax of the "iw" command I used seems to be different, e.g. "iw
> dev wlan0 set channel 1" gave me "No such object type set" error
> message.

It's working for me.  Perhaps your iw is obsolete.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
  2009-06-10 15:27       ` Pavel Roskin
@ 2009-06-10 21:00         ` Luis R. Rodriguez
  0 siblings, 0 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2009-06-10 21:00 UTC (permalink / raw)
  To: ath9k-devel

On Wed, Jun 10, 2009 at 8:27 AM, Pavel Roskin<proski@gnu.org> wrote:
> On Wed, 2009-06-10 at 11:35 +0200, Peter Tarjan wrote:
>
>> I am not sure what does it mean. It is clear that "Band 2" frequencies
>> are unavailable in ad-hoc mode. Is it a limitation that I can bypass?
>
> If your regulatory settings are correct, you shouldn't. ?But it looks
> like you are using world regulatory settings. ?Try using "iw reg set HU"
> if you are in Hungary.

Have you installed crda and wireless-regdb?

 A neat trick to get around passive-scan/no-ibss flag requirements is
to scan. If you're lucky and have an AP nearby on that same channel
those restrictions will be lifted as it is assumed APs can be trusted
and should be beaconing only if allowed regulatory-wise. This is a
feature enhancement of world roaming. If your card has a programmed
regulatory domain for a country you are not world roaming.

 Luis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ath9k-devel] ad-hoc mode using 5 GHz channel (A band)
@ 2009-06-09 16:08 Peter Tarjan
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Tarjan @ 2009-06-09 16:08 UTC (permalink / raw)
  To: ath9k-devel

Hi,

I downloaded and compiled a 2.6.30rc7 kernel with ath9k. The kernel then
recognised the following card:

00:0e.0 Network controller: Atheros Communications Inc. Device 0027 (rev 01)
        Subsystem: Device 0777:4082
        Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 11
        Memory at e0080000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [44] Power Management version 2
        Kernel driver in use: ath9k

Then I switched it into ad-hoc mode by "iwconfig wlan0 mode ad-hoc" and
tried to set frequency to a 5 GHz channel:

$ iwconfig wlan0 channel 36
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Invalid argument.

although there are 5 Ghz channels listed:

$ iwlist wlan0 channel
wlan0     24 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
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 149 : 5.745 GHz
          Channel 153 : 5.765 GHz
          Channel 157 : 5.785 GHz
          Channel 161 : 5.805 GHz
          Channel 165 : 5.825 GHz
          Current Frequency=2.412 GHz (Channel 1)

So my question is whether there is a way to use A-band channel in ad-hoc
mode.

Thanks for any answer in advance.

--
Peter Tarjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090609/ffd25dc8/attachment.htm 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-10 21:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09 18:35 [ath9k-devel] ad-hoc mode using 5 GHz channel (A band) xxiao
2009-06-09 18:47 ` Pavel Roskin
2009-06-09 20:47   ` Luis R. Rodriguez
2009-06-10  9:35     ` Peter Tarjan
2009-06-10 15:27       ` Pavel Roskin
2009-06-10 21:00         ` Luis R. Rodriguez
  -- strict thread matches above, loose matches on Subject: below --
2009-06-09 16:08 Peter Tarjan

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.