linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Jorge Miguel <jmiggal@gmail.com>, linux-wireless@vger.kernel.org
Subject: Re: Setting my WiFi adhoc connection in power save mode
Date: Fri, 13 May 2011 13:55:03 +0200	[thread overview]
Message-ID: <1305287703.3487.16.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <20110513115030.GB5516@redhat.com> (sfid-20110513_135049_107032_FDA55541)

On Fri, 2011-05-13 at 13:50 +0200, Stanislaw Gruszka wrote:

> > I need to set power save mode. In order to do so I tried to change
> > period and timeout options of iwconfig command so that beacon period
> > and ATIM window are changed.
> > 
> > For instance
> > :~$ sudo iwconfig wlan0 power period 2
> >     Error for wireless request "Set Power Management" (8B2C):
> >     SET failed on device wlan0 ; Invalid argument.
> > 
> > As you can see I get an error. Is it because it is not supported in my
> > card? Is there any way to set beacon interval and ATIM window
> > parameters?
> 
> This should work until you do this in managed mode, power save is only a
> infrastructure network feature. Particularly this will not work on IBSS
> network  (ad-hoc mode).

Technically there is a PS mechanism for IBSS (ATIM and all that) but
it's not supported in the stack right now.

> Also in kernel 2.6.39, after driver split into iwlegacy, power save
> is marked as not supported by driver. I wonder it was deliberate action
> from Intel developers, or just IEEE80211_HW_SUPPORTS_PS is missed by
> mistake. I'm going to look at this.

Deliberate. On some platforms/systems, the way the device goes to sleep
caused DMA trouble or something like that, and the ucode would sysassert
when it tried to wake itself up. The problem was fairly rare, but of
course the device wakes up 10 times a second or so ...

johannes


  reply	other threads:[~2011-05-13 11:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 17:02 Setting my WiFi adhoc connection in power save mode Jorge Miguel
2011-05-13 11:50 ` Stanislaw Gruszka
2011-05-13 11:55   ` Johannes Berg [this message]
2011-05-13 12:22     ` Stanislaw Gruszka
2011-05-13 12:27       ` Johannes Berg
2011-05-13 12:39         ` Stanislaw Gruszka
2011-05-13 12:45           ` Johannes Berg
2011-05-13 21:15             ` Jorge Miguel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305287703.3487.16.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=jmiggal@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sgruszka@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).