Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Changes between Version 8 and Version 9 of UserDocs/AntennaDiversity

Author:
paolo (IP: 0.0.0.0)
Timestamp:
08/23/06 01:07:34 (13 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/AntennaDiversity

    v8 v9  
    4040}}} 
    4141 
     42Here's a sh snippet to do it easily: 
     43 
     44{{{ 
     45#!/bin/sh 
     46# sysc_atha.sh 
     47# Usage: sh sysc_atha.sh [tx rx div] 
     48# 
     49t=`cat /proc/sys/dev/wifi0/txantenna` 
     50r=`cat /proc/sys/dev/wifi0/rxantenna` 
     51d=`cat /proc/sys/dev/wifi0/diversity` 
     52t=${1:-$t} 
     53r=${2:-$r} 
     54d=${3:-$d} 
     55(sysctl -w dev.wifi0.txantenna=$t 
     56 sysctl -w dev.wifi0.rxantenna=$r 
     57 sysctl -w dev.wifi0.diversity=$d 
     58)|tr '\n' ' '|sed s/dev.wifi0.//g 
     59echo 
     60}}} 
     61 
     62e.g.: 
     63{{{ 
     64sh sysc_atha.sh 2 2 0 
     65txantenna = 2 rxantenna = 2 diversity = 0 
     66}}} 
     67 
    4268== What doesn't work == 
    4369