From owner-freebsd-net@FreeBSD.ORG Sun Feb 6 19:35:33 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68BF81065670; Sun, 6 Feb 2011 19:35:33 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id CA9228FC12; Sun, 6 Feb 2011 19:35:32 +0000 (UTC) Received: by fxm16 with SMTP id 16so4337930fxm.13 for ; Sun, 06 Feb 2011 11:35:31 -0800 (PST) Received: by 10.223.101.135 with SMTP id c7mr8413707fao.76.1296988680013; Sun, 06 Feb 2011 02:38:00 -0800 (PST) Received: from julie.lab.techwires.net (dslb-088-065-049-167.pools.arcor-ip.net [88.65.49.167]) by mx.google.com with ESMTPS id 11sm805210faw.44.2011.02.06.02.37.54 (version=SSLv3 cipher=RC4-MD5); Sun, 06 Feb 2011 02:37:58 -0800 (PST) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Alexander Zagrebin Date: Sun, 6 Feb 2011 11:34:39 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-RELEASE; KDE/4.5.5; amd64; ; ) References: <20110204060808.GA97298@gw.zagrebin.ru> <201102041314.17939.bschmidt@freebsd.org> <20110204230615.GB12555@gw.zagrebin.ru> In-Reply-To: <20110204230615.GB12555@gw.zagrebin.ru> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201102061134.39622.bschmidt@freebsd.org> Cc: freebsd-net@freebsd.org, Adrian Chadd Subject: Re: if_run in hostap mode: issue with stations in the power save mode X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2011 19:35:33 -0000 On Saturday 05 February 2011 00:06:15 Alexander Zagrebin wrote: > Hi! > > On 04.02.2011 13:14:17 +0100, Bernhard Schmidt wrote: > > > Also I have to note, that it seems that other wlan drivers can > > > has this problem too: only ral's and ath's code uses > > > ieee80211_beacon_update(). > > > > Yeah, true. > > > > > Also, I've found a kern/124753. One of > > > > > > replies contains a log's fragment with many records, like following: > > > kernel: ath0: [00:18:41:c0:06:54] power save mode on, 1 sta's > > > in ps > > > > > > mode kernel: ath0: [00:18:41:c0:06:54] save frame with age 0, 1 > > > now queued kernel: ath0: [00:18:41:c0:06:54] save frame with age > > > 0, 2 now queued kernel: ath0: [00:18:41:c0:06:54] power save > > > mode off, 0 sta's in ps mode kernel: ath0: [00:18:41:c0:06:54] > > > flush ps queue, 2 packets queue But there are no records, which > > > have to be for a PSM enabled stations: When a beacon is properly > > > updated, then we have to see records about 1. TIM updating, like > > > > > > ieee80211_beacon_update: TIM updated, pending 1, off 0, len > > > 1 > > > > > > 2. poll messages from a stations, like > > > > > > wlan0: [18:86:ac:10:4b:88] recv ps-poll, send packet, queue > > > > > > empty > > > > > > Thanks for your cooperation! > > > > You mean there are missing debug messages in net80211/run? > > I meant, that when stations in the PSM are handled correctly, then > the log contains a records like this: > > kernel: wlan0: [18:86:ac:10:4b:88] power save mode on, 1 sta's in ps > mode kernel: wlan0: [18:86:ac:10:4b:88] save frame with age 8, 1 now > queued kernel: wlan0: ieee80211_beacon_update: TIM updated, pending > 1, off 0, len 1 kernel: wlan0: [18:86:ac:10:4b:88] recv ps-poll, > send packet, queue empty kernel: wlan0: ieee80211_beacon_update: TIM > updated, pending 0, off 0, len 1 > > But the log's fragment from the kern/124753 doesn't contain records > with the text "...TIM updated..." and "...recv ps-poll...". > I had the very similar records in the log with the unpatched > if_run.c. Ah I see, ok. Added Adrian to CC, he might be interested. -- Bernhard