From: Kalle Valo <kalle.valo@nokia.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: iwconfig power timeout
Date: Sat, 08 Nov 2008 13:06:40 +0200 [thread overview]
Message-ID: <87prl6wk73.fsf@nokia.com> (raw)
In-Reply-To: <1226140536.3610.2.camel@johannes.berg> (ext Johannes Berg's message of "Sat\, 08 Nov 2008 11\:35\:36 +0100")
Johannes Berg <johannes@sipsolutions.net> writes:
> On Sat, 2008-11-08 at 12:03 +0200, Kalle Valo wrote:
>> Hello,
>>
>> I'm trying to set power save timeout for mac80211 with iwconfig, but
>> I'm having problems with iwconfig on Nokia N810:
>>
>> Nokia-N810-35-3:~# iwconfig wlan0 power timeout 500m
>> Error for wireless request "Set Power Management" (8B2C) :
>> invalid argument "500m".
>> Nokia-N810-35-3:~# iwconfig wlan0 power timeout 3
>> Error for wireless request "Set Power Management" (8B2C) :
>> invalid argument "3".
>> Nokia-N810-35-3:~#
>>
>> Looking at iwconfig sources the error means that either my syntax is
>> wrong or iwconfig has a bug in the parser. I'm guessing the latter
>> based on reading iwconfig(5). But before I will start investigating
>> iwconfig's magic, has anyone else seen this?
>
> Looks like mac80211 is rejecting that setting with -EINVAL, and that may
> well be true.
I don't think so. If mac80211 responds with -EINVAL the error would be
something like this:
$ iwconfig wlan0 power 5m
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan0 ; Operation not permitted.
So the error seems to happen happen during argument parsing. Oh yeah,
and I even had a printk in mac80211 and it wasn't printed. I'm going
to investigate this with gdb and try to understand how iwconfig really
parses the arguments.
--
Kalle Valo
next prev parent reply other threads:[~2008-11-08 11:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-08 10:03 iwconfig power timeout Kalle Valo
2008-11-08 10:35 ` Johannes Berg
2008-11-08 11:06 ` Kalle Valo [this message]
2008-11-08 11:10 ` Johannes Berg
2008-11-08 19:54 ` Tomas Winkler
2008-11-09 14:00 ` Kalle Valo
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=87prl6wk73.fsf@nokia.com \
--to=kalle.valo@nokia.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.