[Gta04-owner] wifi powermanagement update

Andreas Kemnade andreas at kemnade.info
Sat Jan 9 19:34:32 CET 2016


Hi,

I have tried to improve wifi power management again,
If the device is up and there is not much traffic, current consumption
should be low now. Before my last changes that was only the case when
a connection is established. 

I have patched the 3.7-nplus-plus branch. The result is at my github
page:

https://github.com/akemnade/linux.git
branch with the same name.

Just an overview about what kind of power management there in in the
driver as I understand now:
1. ifconfig up/down
   There is a pair of pm_runtime_get/put and
   if_sdio_power_off/on

2. when connected: ieee80211 powersave mode
   listening for incoming traffic only in intervals
   and communicating that with the access point.
   keyword in the code: PS_MODE

3. when not connected: stop the radio when there is no activity for
   some time, firmware does not wake up in intervals for receiving
   packets itself.
   keyword in the code: deep_sleep,
   with my last updates, I tried to make that work.
   
4. waking up the host on incoming packets: according to command packet
definitions in the header file there seem to be pattern matching
available and general things like waiting for unicast, multicast,
broadcast data or mac events. I have not seen a driver which fully
implements that. Seems to be configurable to a part now via ethtool -s
wlan0 wol ...
keyword in the code: host_sleep

Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20160109/b1ca22c4/attachment.asc>


More information about the Gta04-owner mailing list