Skip to contentSkip to conversation

ad-hoc mode using 5 GHz channel (A band)

ath9k-devel xxiao 4 participants 6 messages Jun 9, 2009 – Jun 10, 2009

lore
Share & tools
lore

xxiao

author
#0 lore raw

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

Quoted 84 lines · Peter Tarjan

From: Peter Tarjan <[email protected]>
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

#1 lore raw
Quoted 5 lines · xxiao

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.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
Quoted 7 lines · Pavel Roskin
Quoted 5 lines · xxiao

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

Quoted 5 lines

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

#3 lore raw

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

#4 lore raw
Quoted 2 lines · Peter Tarjan

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.

Quoted 2 lines

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.

Quoted 3 lines

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.

Signature · 2 lines
Regards,
Pavel Roskin
#5 lore raw
Quoted 8 lines · Pavel Roskin
Quoted 2 lines · Peter Tarjan

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