From owner-freebsd-wireless@FreeBSD.ORG Sun Nov 2 08:46:26 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71E693C6; Sun, 2 Nov 2014 08:46:26 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2B251AFC; Sun, 2 Nov 2014 08:46:25 +0000 (UTC) Received: from [93.104.13.129] (helo=unixarea.DDR.dd) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1Xkqnm-0007Cz-Dz; Sun, 02 Nov 2014 09:46:22 +0100 Received: from unixarea.DDR.dd (localhost [127.0.0.1]) by unixarea.DDR.dd (8.14.9/8.14.3) with ESMTP id sA28kDJ9018393; Sun, 2 Nov 2014 09:46:14 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by unixarea.DDR.dd (8.14.9/8.14.3/Submit) id sA28k7vJ018392; Sun, 2 Nov 2014 09:46:07 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: unixarea.DDR.dd: guru set sender to guru@unixarea.de using -f Date: Sun, 2 Nov 2014 09:46:05 +0100 From: Matthias Apitz To: Adrian Chadd , freebsd-wireless@freebsd.org, Nathan Whitehorn Subject: Re: Issues with urtwn Message-ID: <20141102084605.GA60031@unixarea.DDR.dd> Reply-To: Matthias Apitz References: <540C751F.6050202@freebsd.org> <540C92D6.4030106@freebsd.org> <540CC53A.90600@freebsd.org> <540E2A2D.4090301@freebsd.org> <20141026073605.GA1819@unixarea.DDR.dd> <20141101081736.GA2857@unixarea.DDR.dd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20141101081736.GA2857@unixarea.DDR.dd> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.13.129 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2014 08:46:26 -0000 Hi, I do not understand why I have these 'powersave on/off' transitions: Nov 2 09:01:06 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode on Nov 2 09:01:08 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode off Nov 2 09:06:08 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode on Nov 2 09:06:10 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode off Nov 2 09:11:11 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode on Nov 2 09:11:12 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode off # ifconfig wlan0 -powersave # ifconfig -v wlan0 | fgrep power AES-CCM 3:128-bit powersavemode OFF powersavesleep 100 txpower 0 i.e. it seems to be OFF, I even can not set it to on: # ifconfig wlan0 powersave ifconfig: SIOCS80211: Operation not supported What I do can set is the powersavesleep interval to zero: # ifconfig wlan0 powersavesleep 0 # ifconfig -v wlan0 | fgrep power AES-CCM 3:128-bit powersavemode OFF powersavesleep 0 txpower 0 But this does not help either. I fgrep'ed throu the src/sys and it seems that the power save mode on/off message comes out from /usr/src/sys/net80211/ieee80211_power.c /* * Handle power-save state change in station mode. */ void ieee80211_sta_pwrsave(struct ieee80211vap *vap, int enable) { struct ieee80211_node *ni = vap->iv_bss; if (!((enable != 0) ^ ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) != 0))) return; IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, "sta power save mode %s", enable ? "on" : "off"); but this does not answer the question why is switching it on/off. Is it worth to compile a hard change an let return ieee80211_sta_pwrsave() without doing anything? Any ideas? matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign