Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2011 14:53:38 +0400
From:      Lev Serebryakov <lev@serebryakov.spb.ru>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: AP performance (again): txpower regulation
Message-ID:  <1853154884.20110909145338@serebryakov.spb.ru>
In-Reply-To: <CAJ-VmonfU0iJUiC%2BhT32XvH3t9qwKy98o9GdxMZxqebcSPL04Q@mail.gmail.com>
References:  <663133681.20110907193747@serebryakov.spb.ru> <CAJ-Vmonai4LzwanLw7i5d-NyjN2b6GqfttjkdcROvOuEcuzEAw@mail.gmail.com> <437702009.20110907235248@serebryakov.spb.ru> <CAJ-Vmo=R-a%2BqhDLWj1n%2BBj70Pmg4WSL6bVZ6jwCUmNq=v7EBBw@mail.gmail.com> <426917282.20110908125907@serebryakov.spb.ru> <CAAUsrB5Qtokpcz-koUfYWCHrsnUUErQSAYHrXrW2F0Uvp3RzSA@mail.gmail.com> <4610390305.20110908154130@serebryakov.spb.ru> <CAAUsrB6LJ%2BmuTvaqHCySh6e9dMjzshohYFE4PQ3KTezZMZS2JA@mail.gmail.com> <1705262661.20110908180850@serebryakov.spb.ru> <CAAUsrB7CFu096x%2BKKWa=8O_VeSHOK10LuwJ2rWq6r8EidUrL=Q@mail.gmail.com> <CAJ-VmokvXfUAZpxDgv5gLrRdLYn3YwTXAOb7QiTyUg8K5yKLHg@mail.gmail.com> <458771414.20110908183656@serebryakov.spb.ru> <CAJ-Vmom_ZHKbqt%2BQgmdq_oPU-SugbrJ3LNS=g-cpcQ7KExusUw@mail.gmail.com> <4910491962.20110908185213@serebryakov.spb.ru> <CAJ-Vmo==J_9ZhnSciVKNaEaMhM4oeM9fr4yjzPev_MW3g9DALg@mail.gmail.com> <1273865639.20110908191303@serebryakov.spb.ru> <CAJ-VmonVEY74qADwXuhHZ-ujc=yjETAhjf%2Bc1oAEkWpPRs0k%2Bw@m ail.gmail.com> <1607911768.20110909113824@serebryakov.spb.ru> <CAJ-VmonfU0iJUiC%2BhT32XvH3t9qwKy98o9GdxMZxqebcSPL04Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Adrian.
You wrote 9 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 12:02:46:


> Try forcing the TX/RX antenna then. Look at the output of athstats -
> see how rx antenna isn't balanced?
> I bet half your problem is that half your packets are going in/out of
> a disconnected antenna.
> Antenna profile:
> [1] tx  8543738 rx  4922481
> [2] tx   544837 rx    14216

> See? :)

> Try sysctl dev.ath.0.diversity=3D0
> sysctl dev.ath.0.txantenna=3D1
> sysctl dev.ath.0.rxantenna=3D1

> See if that improves things. If not, try antennas =3D 2.
  No luck. I've attached second antenna (exactly the same long
 rubberduck 9-10dB model, I have two of them at hands). Result is the
 same: "formal" speed is 54M often, but speed is only 4-5Mbit today
(yesterday it was 10Mbit!), I've tried both antennas by one
(diversity=3D0, [tx|rx]antennas=3D[1|2]), results are exactly the same.
Yes, athstats shows, that these sysctls works (counters for disabled
antenna stop), but bandwidth is the same. Here is output of athstats
after almost hour of "iperf", mostly with both antennas turned on
(before experiments with diversity it was only 2400 rx frames on
second antenna and about 200K vs 1M tx frames 1st vs 2nd antennas).

gateway# ./athstats9
958888   data frames received
1583913  data frames transmit
55853    tx frames with an alternate rate
988328   long on-chip tx retries
20281    tx failed 'cuz too many retries
24M      current transmit rate
151      tx frames with no ack marked
1556918  tx frames with short preamble
18443    rx failed 'cuz of bad CRC
100      rx failed 'cuz of PHY err
    4        OFDM restart
    96       CCK restart
32683    beacons transmitted
112      periodic calibrations
-0/+0    TDMA slot adjust (usecs, smoothed)
41       rssi of last ack
36       avg recv rssi
-95      rx noise floor
26844    tx frames through raw api
12       cabq frames transmitted
2        cabq xmit overflowed beacon interval
41       switched default/rx antenna
4        noise immunity level
2        spur immunity level
8        ANI increased noise immunity
6        ANI increased spur immunity
2        ANI decrease spur immunity
4        ANI enabled OFDM weak signal detect
4        ANI disabled CCK weak signal threshold
28509691 cumulative OFDM phy error count
291680   cumulative CCK phy error count
68       ANI forced listen time to zero
988311   missing ACK's
24474    bad FCS
11       average rssi (beacons only)
Antenna profile:
[1] tx  1188167 rx   942337
[2] tx   375448 rx    16551


--=20
// Black Lion AKA Lev Serebryakov <lev@serebryakov.spb.ru>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1853154884.20110909145338>