Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2014 09:46:05 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Adrian Chadd <adrian@freebsd.org>, freebsd-wireless@freebsd.org, Nathan Whitehorn <nwhitehorn@freebsd.org>
Subject:   Re: Issues with urtwn
Message-ID:  <20141102084605.GA60031@unixarea.DDR.dd>
In-Reply-To: <20141101081736.GA2857@unixarea.DDR.dd>
References:  <540C751F.6050202@freebsd.org> <CAJ-VmokyPcS077wHiP4Mdetms=meqk47v29fKA1edidhorVQpg@mail.gmail.com> <540C92D6.4030106@freebsd.org> <CAJ-VmomMwJOSz7hyAfeEgPE=qBfYm7fTOo5km8JJk4g62JxTkg@mail.gmail.com> <540CC53A.90600@freebsd.org> <CAJ-Vmokt_kgxW3aPEDcNwg_ZVrCotqF_tOP1YjZCtO=nCZ8z5Q@mail.gmail.com> <540E2A2D.4090301@freebsd.org> <CAJ-VmongioOZQS561Qq5S1T0UVnBifxrQf8P0rr8jEWzk=dumQ@mail.gmail.com> <20141026073605.GA1819@unixarea.DDR.dd> <20141101081736.GA2857@unixarea.DDR.dd>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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