Subject: Re: Atheros client interface going down and up frequently
To: Konstantin KABASSANOV <Konstantin.Kabassanov@lip6.fr>
From: Ulrich Etile <timeox@gmail.com>
List: tech-net
Date: 02/04/2006 00:59:06
On Fri, 3 Feb 2006 11:22:11 +0100
"Konstantin KABASSANOV" <Konstantin.Kabassanov@lip6.fr> wrote:

> > -----Message d'origine-----
> > De=A0: current-users-owner@NetBSD.org [mailto:current-users-
> > owner@NetBSD.org] De la part de Martin Husemann
> > Envoy=E9=A0: vendredi 3 f=E9vrier 2006 11:12
> > =C0=A0: Konstantin KABASSANOV
> > Cc=A0: 'David Young'; current-users@NetBSD.org; tech-net@NetBSD.org
> > Objet=A0: Re: Atheros client interface going down and up frequently
> >=20
> > On Fri, Feb 03, 2006 at 10:36:41AM +0100, Konstantin KABASSANOV wrote:
> > > Feb  3 08:23:57 soekris-01 /netbsd: ath1: link state changed to DOWN
> > > Feb  3 08:24:07 soekris-01 /netbsd: ath1: link state changed to UP
> >=20
> > I see this too, when the net is quiet. They seem to do no harm and never
> > happen when there is traffic. I assumed my AP would have some sort of i=
dle
> > timeout for associations and never checked further.
> >=20
> Well, on my interface there is always some traffic. I mean at least there
> must be some traffic, but it is possible that it is stopped by the wirele=
ss
> card driver...
>=20
> Konstantin=20
>=20

Hi,

I think the card stop the traffic when the signal is too weak.

I also had the same problem as you ( on i386 platform ).
So, i removed a line of /usr/src/sys/net/if.c

From the 1171 line :

	/* Notify that the link state has changed. */
	if (ifp->if_link_state !=3D link_state) {
		ifp->if_link_state =3D link_state;
		rt_ifmsg(ifp);
		log(LOG_NOTICE, "%s: link state changed to %s\n", ifp->if_xname,
		    (link_state =3D=3D LINK_STATE_UP) ? "UP" : "DOWN" );
	}


i removed the following line :

log(LOG_NOTICE, "%s: link state changed to %s\n", ifp->if_xname,
		    (link_state =3D=3D LINK_STATE_UP) ? "UP" : "DOWN" );

Now, i don't have any more this message


--=20
--Ulrich Etile, http://www.chetsbu.net/blog