Search Linux Wireless

Re: [RFC 2/2] mac80211: implement dynamic power save

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

 



2008/11/11 Kalle Valo <kalle.valo@xxxxxxxxx>:
> Vivek Natarajan <vivek.natraj@xxxxxxxxx> writes:
>
>> Currently there is no support for powersave in ath9k( Not sure about
>> ath5k though). There is a code level implementation for the following
>> although we do not enable them:
>>  Support for network sleep mode:
>>      If a request for network sleep comes from higher layers, the
>> sleep duration having been configured based on beacon interval and the
>> TIM offset in the beacon based on AID is all configured, then the
>> chip will happily go to sleep and wake up for the beacon to read TIM.
>
>> But the code for calulating TIM offset, reading TIM, to decide the power
>> level based on TIM, extending awake time based on DTIM needs to be
>> done.
>
> Thanks, this was useful. Is the interface for these power save
> commands available somewhere? I would like to take a look so that I
> understand what kind of paremeters the driver can set.
>

Check out these 2 functions...
http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath5k/base.c;h=8c9961525cc44bee2ff4be4619264faa3f02962d;hb=HEAD#l2035
http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath5k/pcu.c;h=d7f0c1017bda55a86a18acbb1384ebee34377eb5;hb=HEAD#l674

We set some intervals during beacon_update_timers and init_beacon is
called to pass them on hw, init_beacon can (should) also set enhanced
sleep registers on AR5212, for more infos you can check legacy-hal or
read reg.h
http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=blob;f=drivers/net/wireless/ath5k/reg.h;h=69755fc2f9bee78ab78489bec6cd1ceb782ef914;hb=HEAD#l1602


-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
--
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