summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl1251/wl1251.h
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2011-04-04 12:04:57 +0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-07 23:34:14 +0400
commita0bbb58bcb70295ff05f870c93d34f9fbe614204 (patch)
tree63eaefe05ef883aef37a4b6ecd121ae0ec9f0471 /drivers/net/wireless/wl1251/wl1251.h
parentffbd308dce898a857de76d17cc05748505cf4ece (diff)
downloadlinux-a0bbb58bcb70295ff05f870c93d34f9fbe614204.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/wl1251/wl1251.h')
-rw-r--r--drivers/net/wireless/wl1251/wl1251.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl1251/wl1251.h b/drivers/net/wireless/wl1251/wl1251.h
index bb23cd522b22..bf245a87e80e 100644
--- a/drivers/net/wireless/wl1251/wl1251.h
+++ b/drivers/net/wireless/wl1251/wl1251.h
@@ -129,6 +129,11 @@ enum wl1251_partition_type {
PART_TABLE_LEN
};
+enum wl1251_station_mode {
+ STATION_ACTIVE_MODE,
+ STATION_POWER_SAVE_MODE,
+};
+
struct wl1251_partition {
u32 size;
u32 start;
@@ -358,8 +363,7 @@ struct wl1251 {
struct delayed_work elp_work;
- /* we can be in psm, but not in elp, we have to differentiate */
- bool psm;
+ enum wl1251_station_mode station_mode;
/* PSM mode requested */
bool psm_requested;