How to disable diversity on atheros card

Miroslav Chlasták chlastak at fialka.cz
Mon Aug 23 15:32:34 UTC 2010


Hello,

I'am running wifi ap (mediaopt hostap) on 7.0-RELEASE-p4 with Atheros 
5212 card. It's possible to disable antenna diversity? I have this 
configuration of card:

ath1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
     ether 00:0b:6b:db:ac:9f
     inet 192.168.6.254 netmask 0xffffff00 broadcast 192.168.6.255
     inet 10.0.4.254 netmask 0xffffff00 broadcast 10.0.4.255
     media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
     status: associated
     ssid mywlan channel 124 (5620 Mhz 11a) bssid 00:0b:6b:db:ac:9f
     authmode OPEN privacy OFF deftxkey UNDEF powersavemode OFF
     powersavesleep 100 txpower 31.5 txpowmax 18.0 rtsthreshold 2346
     fragthreshold 2346 bmiss 7 scanvalid 60 bgscan bgscanintvl 300
     bgscanidle 250 roam:rssi11a 7 roam:rate11a 12 roam:rssi11b 7
     roam:rate11b 1 roam:rssi11g 7 roam:rate11g 5 -pureg protmode CTS -ht
     -htcompat -ampdu ampdulimit 8k ampdudensity - -amsdu -shortgi
     htprotmode RTSCTS -puren -wme burst -ff -dturbo -hidessid apbridge
     dtimperiod 1 doth inact bintval 100


dev.ath.1.%desc: Atheros 5212
dev.ath.1.%driver: ath
dev.ath.1.%location: slot=9 function=0
dev.ath.1.%pnpinfo: vendor=0x168c device=0x0013 subvendor=0x185f 
subdevice=0x1012 class=0x020000
dev.ath.1.%parent: pci2
dev.ath.1.smoothing_rate: 95
dev.ath.1.sample_rate: 10
dev.ath.1.countrycode: 276
dev.ath.1.regdomain: 0
dev.ath.1.slottime: 9
dev.ath.1.acktimeout: 34
dev.ath.1.ctstimeout: 36
dev.ath.1.softled: 0
dev.ath.1.ledpin: 0
dev.ath.1.ledon: 0
dev.ath.1.ledidle: 2700
dev.ath.1.txantenna: 0
dev.ath.1.rxantenna: 1
dev.ath.1.diversity: 0
dev.ath.1.txintrperiod: 5
dev.ath.1.diag: 0
dev.ath.1.tpscale: 0
dev.ath.1.tpc: 0
dev.ath.1.tpack: 63
dev.ath.1.tpcts: 63
dev.ath.1.fftxqmin: 2
dev.ath.1.fftxqmax: 50
dev.ath.1.rfsilent: 0
dev.ath.1.rfkill: 0
dev.ath.1.monpass: 24

And every day is dev.ath.1.rxantenna: 1 changed to dev.ath.1.rxantenna: 
2 automaticaly (and wireless clients are out of order - i must change by 
hand back to dev.ath.1.rxantenna: 1) :(

athstats show this (switched default/rx antenna is rising):
458080 data frames received
1276146 data frames transmit
1236 tx frames with an alternate rate
27425 long on-chip tx retries
389 tx failed 'cuz too many retries
54M current transmit rate
587682 tx management frames
6 tx frames discarded prior to association
20123 tx frames with no ack marked
10898 rx failed 'cuz of bad CRC
1503725 rx failed 'cuz of PHY err
     1503703 OFDM timing
     22 OFDM restart
3244844 beacons transmitted
11118 periodic calibrations
2 rfgain value change
29 rssi of last ack
31 avg recv rssi
-96 rx noise floor
37 switched default/rx antenna
Antenna profile:
[1] tx  1266102 rx  1047239
[2] tx    10052 rx       15

Wireless card has 2 antena connectors, but only on main connector is 
antena atached.

What is wrong?

-- 
Mira Chlastak



More information about the freebsd-mobile mailing list