wl1251: Prepare for idle mode support
authorJarkko Nikula <jhnikula@gmail.com>
Mon, 4 Apr 2011 08:04:57 +0000 (11:04 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 May 2011 15:31:46 +0000 (18:31 +0300)
commit2353eebf639191a14a5b0646a1e8e17b6483e0c6
treeaf62be3701cda858395cb29c8752cdef8edec715
parent9947b212d17934e6c39e0ac2f38bba272856a39a
wl1251: Prepare for idle mode support

RFC for WL1251 idle mode support brought a few issues that are worth to
update before adding the idle mode support.

Since the idle mode can reuse the code that is now used in Power Save Mode
(PSM), the flag psm in struct wl1251 is changed to variable station_mode
to be able to distinguish between PSM and idle modes.

As the station mode is different than the power power save mode command
that is sent to chip, the enum wl1251_cmd_ps_mod values are used only when
communicating with the chip and new enum wl1251_station_mode values are used
inside the driver.

Confusing comment about psm and elp relation is removed since the PSM is
actually activated by putting the chip into Entreme Low Power (ELP) mode.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1251.h
drivers/net/wireless/wl12xx/wl1251_cmd.h
drivers/net/wireless/wl12xx/wl1251_event.c
drivers/net/wireless/wl12xx/wl1251_main.c
drivers/net/wireless/wl12xx/wl1251_ps.c
drivers/net/wireless/wl12xx/wl1251_ps.h