Search Linux Wireless

Re: iwconfig power timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Berg <johannes@xxxxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux