linux_dsm_epyc7002/drivers/net/wireless/wl1251
Jarkko Nikula 1e5f52de21 wl1251: Add support for idle mode
On Nokia N900 the wl1251 consumes the most power when the interface is up
but not associated to access point (that supports PSM). In terms of battery
current consumption, the consumption is ~180 mA higher when the interface is
up but not associated and only ~5 mA higher when associated compared to
interface down and driver not loaded cases.

This patch adds support for the mac80211 idle notifications. Chip is put into
idle very much the same way when entering into PSM by utilizing the Extreme
Low Power (ELP) mode. I.e. idle is entered by setting necessary conditions
in wl1251_ps_set_mode followed by a call to wl1251_ps_elp_sleep.

It seems it is just enough the authorize ELP mode followed by
CMD_DISCONNECT (thanks to Kalle Valo about the idea to use it).
Without disconnect command the chip remains somewhat active and stays
consuming ~20 mA. Idle mode is left by same way than PSM. The wl1251_join
call is used to revert the CMD_DISCONNECT. Without it association to AP
doesn't work when trying second time.

With this patch the interface up but not associated case the battery current
consumption is less than 1 mA higher compared to interface down case.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-04-07 15:34:14 -04:00
..
acx.c wl1251: implement connection quality monitoring 2011-02-03 16:44:42 -05:00
acx.h wl1251: implement connection quality monitoring 2011-02-03 16:44:42 -05:00
boot.c wl1251: remove unnecessary import 2010-12-22 15:43:26 -05:00
boot.h
cmd.c
cmd.h wl1251: Prepare for idle mode support 2011-04-07 15:34:14 -04:00
debugfs.c
debugfs.h
event.c wl1251: Prepare for idle mode support 2011-04-07 15:34:14 -04:00
event.h
init.c
init.h
io.c
io.h
Kconfig
main.c wl1251: Add support for idle mode 2011-04-07 15:34:14 -04:00
Makefile
ps.c wl1251: Add support for idle mode 2011-04-07 15:34:14 -04:00
ps.h wl1251: Prepare for idle mode support 2011-04-07 15:34:14 -04:00
reg.h
rx.c mac80211: rename RX_FLAG_TSFT 2011-02-23 16:25:29 -05:00
rx.h
sdio.c drivers: Final irq namespace conversion 2011-03-29 14:48:19 +02:00
spi.c drivers: Final irq namespace conversion 2011-03-29 14:48:19 +02:00
spi.h
tx.c wl1251: fix 4-byte TX buffer alignment 2011-02-03 16:42:44 -05:00
tx.h
wl12xx_80211.h ieee80211: add IEEE80211_COUNTRY_STRING_LEN definition 2011-03-09 16:10:56 -05:00
wl1251.h wl1251: Add support for idle mode 2011-04-07 15:34:14 -04:00