5Ghz Atheros

Z HKfree wiki
Skočit na navigaci Skočit na vyhledávání

Je 5GHz legální? Jaké jsou frekvence, kanály a povolené výkony?

Vše viz

http://cz-free.net/phpBB2/viewforum.php?f=11

Střípky z indoor testovani karet Atheros AR5212 (na 5.8 GHz) v Linuxu

hardware: http://www.i4shop.net/cz/iObchod/Catalog.asp?ca=1626&it=9153 v PCI redukci, Pentium III 450 MHz. software: Linux 2.4.27-hk11b, madwifi CVS 20.4.2005

Jak to vidí PCI sběrnice:

# lspci
0000:00:09.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
0000:00:0a.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
# lspci -n
0000:00:09.0 0200: 168c:0013 (rev 01)
0000:00:0a.0 0200: 168c:0013 (rev 01)

Ovladače madwifi po zkompilování

08:52:39 CF-Linux-router:~# ll /lib/modules/2.4.27-hk11b/net/
-rw-r--r--  1 root vojta 161580 Apr 19 09:32 ath_hal.o
-rw-r--r--  1 root vojta  58144 Apr 19 09:32 ath_pci.o
-rw-r--r--  1 root vojta   8136 Apr 19 09:32 ath_rate_onoe.o
-rw-r--r--  1 root vojta 118808 Apr 19 09:32 wlan.o
-rw-r--r--  1 root vojta   4304 Apr 19 09:32 wlan_acl.o
-rw-r--r--  1 root vojta   6676 Apr 19 09:32 wlan_ccmp.o
-rw-r--r--  1 root vojta  11380 Apr 19 09:32 wlan_tkip.o
-rw-r--r--  1 root vojta   5100 Apr 19 09:32 wlan_wep.o
-rw-r--r--  1 root vojta   1696 Apr 19 09:32 wlan_xauth.o

Ovladače madwifi startují (modprobe ath_pci)

ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
ath_rate_onoe: 1.0
ath_pci: 0.9.4.12 (EXPERIMENTAL)

PCI: Found IRQ 7 for device 00:09.0
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: turbo rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 5.6 phy 4.1 radio 3.6
ath0: 802.11 address: 00:60:b3:c5:c3:b1
ath0: Use hw queue 0 for WME_AC_BE traffic
ath0: Use hw queue 1 for WME_AC_BK traffic
ath0: Use hw queue 2 for WME_AC_VI traffic
ath0: Use hw queue 3 for WME_AC_VO traffic
ath0: Atheros 5212: mem=0xec010000, irq=7

PCI: Found IRQ 9 for device 00:0a.0
ath1: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath1: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath1: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath1: turbo rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath1: mac 5.6 phy 4.1 radio 3.6
ath1: 802.11 address: 00:60:b3:c5:c4:19
ath1: Use hw queue 0 for WME_AC_BE traffic
ath1: Use hw queue 1 for WME_AC_BK traffic
ath1: Use hw queue 2 for WME_AC_VI traffic
ath1: Use hw queue 3 for WME_AC_VO traffic
ath1: Atheros 5212: mem=0xec000000, irq=9

Testovaci nastaveni - jedna karta je AP a druha karta je klient

ifconfig ath0 up
ifconfig ath1 up
iwconfig ath0 mode master
iwconfig ath0 channel 161 # To jest 5.805 GHz
iwconfig ath0 essid "Garaz"

iwconfig ath1 mode managed
iwconfig ath1 essid any

Behem chvile se ath1 asociuje na ath0:

ath0     IEEE 802.11a  ESSID:"Garaz"
         Mode:Master  Frequency:5.805GHz  Access Point: 00:60:B3:C5:C3:B1
         Bit Rate:0kb/s   Tx-Power:50 dBm   Sensitivity=0/0
         Retry:off   RTS thr:off   Fragment thr:off
         Encryption key:off
         Power Management:off
         Link Quality:83/0  Signal level:-12 dBm  Noise level:-95 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0
ath1     IEEE 802.11a  ESSID:"Garaz"
         Mode:Managed  Frequency:5.805GHz  Access Point: 00:60:B3:C5:C3:B1
         Bit Rate:36Mb/s   Tx-Power:50 dBm   Sensitivity=0/0
         Retry:off   RTS thr:off   Fragment thr:off
         Encryption key:off
         Power Management:off
         Link Quality:83/0  Signal level:-12 dBm  Noise level:-95 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

A pomoci skriptu od pavkrize (zde na wiki) muzeme z jedne sitovky na druhou pingat venkem pres radio.

ping s 64B pakety temer nerozezname od ethernetoveho spojeni: 0.4 ms

# ping  -i 0.1 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=0.381 ms
64 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=0.387 ms
64 bytes from 192.168.10.1: icmp_seq=3 ttl=64 time=0.385 ms
64 bytes from 192.168.10.1: icmp_seq=4 ttl=64 time=0.393 ms
64 bytes from 192.168.10.1: icmp_seq=5 ttl=64 time=0.387 ms
64 bytes from 192.168.10.1: icmp_seq=6 ttl=64 time=0.385 ms
64 bytes from 192.168.10.1: icmp_seq=7 ttl=64 time=0.385 ms
64 bytes from 192.168.10.1: icmp_seq=8 ttl=64 time=0.376 ms
64 bytes from 192.168.10.1: icmp_seq=9 ttl=64 time=0.384 ms
64 bytes from 192.168.10.1: icmp_seq=10 ttl=64 time=0.381 ms

--- 192.168.10.1 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 914ms
rtt min/avg/max/mdev = 0.376/0.384/0.393/0.018 ms

ping s 1.5kB pakety: 1.1 ms

# ping  -i 0.1 192.168.10.1 -s 1490
PING 192.168.10.1 (192.168.10.1) 1490(1518) bytes of data.
1498 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=1.10 ms
1498 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=1.08 ms
1498 bytes from 192.168.10.1: icmp_seq=3 ttl=64 time=1.06 ms
1498 bytes from 192.168.10.1: icmp_seq=4 ttl=64 time=1.36 ms
1498 bytes from 192.168.10.1: icmp_seq=5 ttl=64 time=1.07 ms
1498 bytes from 192.168.10.1: icmp_seq=6 ttl=64 time=1.08 ms
1498 bytes from 192.168.10.1: icmp_seq=7 ttl=64 time=1.06 ms
1498 bytes from 192.168.10.1: icmp_seq=8 ttl=64 time=1.06 ms
1498 bytes from 192.168.10.1: icmp_seq=9 ttl=64 time=1.06 ms

--- 192.168.10.1 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 878ms
rtt min/avg/max/mdev = 1.060/1.107/1.365/0.100 ms

Zveřejnil VojtaLhota 4/2005


Pokud nechcete aby se karta zavadela jako ath ale napr. jako eth pouzijte pri zavadeni modulu tento prikaz:

modprobe ath_pci ifname="eth"

Nastaveni regionu napr. Nemecko (meni rozsah kanalu - ten je mozne zjistit prikazem: iwlist channel):

modprobe ath_pci countrycode=276

AirCA8 a jeho regulace výkonu

HW klient http://www.i4shop.net/cz/iObchod/Catalog.asp?ca=1620&it=9240 má nastavení TX power ve 4 krocích: 100%, 75%, 50%, 25% nebo no power.

Při použití tohoto klienta proti AP (atheros AR5212, Linux, madwifi) hlásí toto AP sílu signálu od klienta takto:

100%    00:0B:6B:3B:F2:96 : Quality=32/94  Signal level=-63 dBm  Noise level=-95 dBm
75%     00:0B:6B:3B:F2:96 : Quality=28/94  Signal level=-67 dBm  Noise level=-95 dBm
50%     00:0B:6B:3B:F2:96 : Quality=24/94  Signal level=-71 dBm  Noise level=-95 dBm
25%     00:0B:6B:3B:F2:96 : Quality=18/94  Signal level=-77 dBm  Noise level=-95 dBm
  • Jedná se o měření na koleně, údaje v dBm nemají v absolutní hodnotě význam, šlo mi jen o srovnání. Krok 25% tedy odpovídá zhruba 5 dBm.
  • Při nastavení "no power" se přenos dat na cca 10s zastavil a poté znovu rozběhl se signal level okolo -64 dBm (odpovida 100%) i přesto, že AirCA stále ukazuje nastaveni "no power".

Zveřejnil VojtaLhota 4/2005