Useful Links for Testbed:

OpenHal Bookmarks:

Scripting Bookmarks:

Useful hints:

    wlanconfig ath1 create wlandev wifi0 wlanmode monitor 
    ifconfig ath1 up
    echo '801' > /proc/sys/net/ath1/dev_type        # only 802.11 headers 
    echo '802' > /proc/sys/net/ath1/dev_type        # prism2 headers 
    echo '803' > /proc/sys/net/ath1/dev_type        # radiotap headers  
    echo '804' > /proc/sys/net/ath1/dev_type        # atheros descriptors 

The signal and noise measurements are in decibel milliwatts and the SNR is in plain decibels. dB is a meausement scale that's only useful for comparing one value to another. In the case of the signal and noise measurements we choose 1mW to be 0 dB and measure from there (hence, these measurements are usually a negative number). In the case of the SNR we are comparing two values directly and it doesn't matter what value is used as a zero for each measurement as long as it was the same. The difference gets lost in the subtraction.

For example: Signal = -38dBm = 1mW - 38dB Noise = -96 dBm = 1mW - 96dB SNR = 38 dBm - -96dBm = (1mW - 38dB) - (1mW - 96dB) = (1mW - 1mW ) + (96dB - 38dB) = 58 dB

sysctl -w dev.wifiX.intmit=0

diversity:

  0: no
  1: yes

txantenna and rxantenna:

  0: auto
  1: antenna 1
  2: antenna 2

Which connector corresponds to antenna 1 and which to antenna 2 depends on the particular radio hardware. For the popular Wistron CM-9 MiniPCI the connector close to the corner of the card is antenna 1, but contrarywise another popular Wistron CM-10 (DCMA-81)MiniPCI (half-size) has connector close to the inside of the card is antena 1 and close to the corner of the card is antenna 2. Do not mix up these CM´s cards!

For example, to disable diversity and select antenna 1 for receive and transmit you'd do the following:

  sysctl -w dev.wifi0.diversity=0
  sysctl -w dev.wifi0.txantenna=1
  sysctl -w dev.wifi0.rxantenna=1 

iwpriv athX mcast_rate 48000 (for 48.0 Mbps)

 
anandps.txt · Last modified: 2008/10/30 05:56 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki