Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2011 00:22:51 +0800
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        =?ISO-8859-1?Q?Gustau_P=E9rez?= <gperez@entel.upc.edu>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: Big delays between an AR5416 AP and its clients
Message-ID:  <CAJ-Vmon7-PdC51nWjW-M-ojuShwG-iNrBpztNovsZpzgjm9BqA@mail.gmail.com>
In-Reply-To: <4EDA4BBA.6010203@entel.upc.edu>
References:  <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> <CAJ-Vmo=1k=oKP-vDUH=BLdyeVzGnQvNmJ6TwGcdQjwpgJWt52w@mail.gmail.com> <4ECFCDAB.1080407@entel.upc.edu> <CAJ-VmokQTpgxMo=gmj0LsYhD6t9mmoHXG_sbhZdFNW5_OSGbmg@mail.gmail.com> <a9d1d8f91deb80a89bed98c1ffdb23fd@webmail.entel.upc.edu> <CAJ-Vmo=P%2BWAArZ1Kidh947yHuftZTBwF=Vx5Kn36-LKtD4grPg@mail.gmail.com> <4ED3B4D1.3020701@entel.upc.edu> <CAJ-Vmo=1KimWWEkV4gqEyFiNQRZTkK8okPBSfnc494iJbtLzsw@mail.gmail.com> <4EDA4BBA.6010203@entel.upc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/12/4 Gustau P=E9rez <gperez@entel.upc.edu>:

> =A0 I see nothing particular in my dmesg with wlandebug enabled. I see th=
e
> AR5416 complaining about a beacon off-channel for a MAC I don't know abou=
t.
> I also see the iphone's MAC going power save with a message like this:
>
> =A0 =A0 =A0 =A0 =A0 =A0 power save mode on, 2 sta's in ps mode

Well, it _is_ doing power saving, which I expected. This doesn't at
all correlate with the periodicity of the issue?

> =A0I also see all of those messages with a pre r227364 kernel, so I would=
 say
> they are harmless and not related to the issue.

*nod* I'm just looking if they correlate timewise with the growing latency.=
.

> =A0However, I see these the following entries in my dmesg when using r227=
364:
>
> =A0 =A0 =A0 =A0Dec =A03 16:46:27 harkserver kernel: Timeout while waiting=
 for nf
> =A0 =A0 =A0 =A0to load: AR_PHY_AGC_CONTROL=3D0x41d1a
> =A0 =A0 =A0 =A0Dec =A03 16:46:27 harkserver kernel: Timeout while waiting=
 for nf
> =A0 =A0 =A0 =A0to load: AR_PHY_AGC_CONTROL=3D0x41d1a
>
> =A0 =A0 =A0 =A0Dec =A03 16:18:27 harkserver kernel: ar5416PerCalibrationN=
: NF
>
> =A0 =A0 =A0 =A0calibration didn't finish; delaying CCA
> =A0 =A0 =A0 =A0Dec =A03 16:18:27 harkserver kernel: ar5416PerCalibrationN=
: NF
>
> =A0 =A0 =A0 =A0calibration didn't finish; delaying CCA
>
> =A0I don't see those messages with a previous revision because they appea=
r to
> be part of r227364. Those problems appear from time to time, could they a=
nd
> the latency increase be related?

That could be related. If the device thinks the air is constantly busy
(or it's spending a lot of time trying to TX) then it may fail NF
calibration.
I just wonder what I've changed which may be causing the NIC to behave this=
 way.

What's interesting (!) is that I have seen similar reports with ath9k
in Linux. I wonder if part of the 11n work (that ath9k has also
borrowed) has the same broken behaviour on the AR5416.

Can you please file all of this in the PR? I'll have finished moving
by December 15 so I can start trying to replicate this issue and help
you debug it.

Thanks,


Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon7-PdC51nWjW-M-ojuShwG-iNrBpztNovsZpzgjm9BqA>