Aquarium CB 21MHz Electronics Music Photos ZX Spectrum +2A Cooking Fishing Main page Aquarium CB 27MHz Electronics Music Fotos ZX Spectrum Cooking Fishing

Česká verze


English speaking people can read much more at Not all the stuff is translated because I'm very busy.

Throughput test

This describes how to measure throughput for madwifi-ng-r1538-20060502. With this version no crashs has been observed anymore (comparing to older versions of madwifi-ng).
Tested driver was madwifi-ng-r1538-20060502.tar.gz and two cards CM9 Ahteros 5213 and Sparklan WL-760A.
The test was performed in the same room using small 2dB antennas bundled with the card. The distance between both antennas was about 4 meters only.
throughput atheros madwifi-ng test
node mode SNR type distance [m] driver/command/graph
jaja client 43 VZA-81 500 madwifi-ng-r1538-20060502
paja ap 39 WL-760-A 500 madwifi-ng-r1538-20060502
rate j>p p>j ideal real/ideal
54 34,97 34,51 54 0,65 netperf -H
54 34,92 35,37 54 0,65 netperf -H -l 120
54 j<>p 18,39 18,62 27 0,68 netperf -H -l 240
j>p means transfer from jaja to paja test_20060503_04_ap_ath0-hour.png
p>j means transfer from paja to jaja test_20060503_04_client_ath0-hour.png
rate j>p p>j ideal real/ideal
6 4,62 4,54 6 0,77 netperf -H
9 6,87 6,83 9 0,76 netperf -H
12 8,95 8,86 12 0,75 netperf -H
18 13,54 13,44 18 0,75 netperf -H
24 17,44 17,23 24 0,73 netperf -H
36 25,37 25,13 36 0,7 netperf -H
48 32,62 32,41 48 0,68 netperf -H
54 35,53 35,6 54 0,66 netperf -H -l 360
the distance was set by the command "athctrl -i wifi0 -d 500" test_20060503_05_ap_ath0-hour.png


Crash tests for madwifi-ng-r1474-20060314 in AP mode

This describes how it is possible to reproduce system crash by madwifi-ng-r1474-20060314.
As a parameter in the grub configuration was added "console=ttyS0,9600 console=tty0" (according the tutor ) and a notebook was connected by serial cable to the testing router. As a command to store the console output to the file was used
"cat /dev/ttyS0 > test_20060502_cm9_ap_madwifi-ng-r1474-20060314_console_02.txt"
Crash test for madwifi-ng r1474-20060314 4092776 Crash test for madwifi-ng r1474-20060314 4092777
test_20060502_cm9_ap_madwifi-ng-r1474-20060314_console_02.txt test_20060502_cm9_ap_madwifi-ng-r1474-20060314_console_03.txt test_20060502_cm9_ap_madwifi-ng-r1474-20060314_console_04.txt test_20060502_cm9_ap_madwifi-ng-r1474-20060314_console_05.txt

Crash test for madwifi-ng r1474-20060314 4092778 Crash test for madwifi-ng r1474-20060314 4092779

Setting supported 5G bands

It is possible to set a register to change supported bands. We can do it in Linux using ar5k program.
I've tried it many times and it works just perfect. Just run "lspci -v" to find a memory block used by atheros.
lspci -v (search for an address after "Memory at", something like "10800000")
and now run following command
ar5k 0x10800000 0x60
And after rmmod and modprobe (or reboot) our card will support this set of channels

If you will use Widow$ you just need drivers and an, that will help you to set the card.
Just run "Channel set utility" and choose one of three possibilities
5.1 - 5.8 GHz CB9 channels for this selection - widest set of channels
5.4 - 5.7 GHz CB9 channels for this selection
5.7 - 5.8 GHz CB9 channels for this selection - default setting
press APPLY and EXIT

Switching antennas

We can set RX and TX antennas independently. Be sure if you have set the right connector with the antenna otherwise you can obtain strange results. One connector is called "1" and second "2" and if you place there "0" then you enable diversity function and the firmware selects by itself what to use.
If you face the nimiPCI cards then you can see:
Card CM9 has connector 1 at the right
Card CM10/DCMA-81 has connector 1 at the left
Next script can help you
# Petr Simandl
# prepinani anten pro atheros

if [ "$1 x" = " x" ]
      echo "usage : athant [ath0|ath1|ath2|wifi0|wifi1|wifi2] [0|1|2]"
      echo "0..diversity    1.. antenna 1    2.. antenna 2
      exit 1

case $2 in
#    /bin/echo "zapinam diversity pro $1"
    echo 0 > /proc/sys/dev/$1/rxantenna
    echo 0 > /proc/sys/dev/$1/txantenna
    echo 1 > /proc/sys/dev/$1/diversity
#    echo "antena 1 pro $1"
    echo 1 > /proc/sys/dev/$1/rxantenna
    echo 1 > /proc/sys/dev/$1/txantenna
    echo 0 > /proc/sys/dev/$1/diversity
#    echo "antena 2 pro $1"
    echo 2 > /proc/sys/dev/$1/rxantenna
    echo 2 > /proc/sys/dev/$1/txantenna
    echo 0 > /proc/sys/dev/$1/diversity
    echo -n "div "
    cat /proc/sys/dev/$1/diversity
    echo -n "txa "
    cat /proc/sys/dev/$1/txantenna
    echo -n "rxa "
    cat /proc/sys/dev/$1/rxantenna
Main page