wl1251: NVS dump/load hacks
[pandora-kernel.git] / drivers / net / wireless / wl1251 / wl1251.h
index bb23cd5..5c1ec78 100644 (file)
@@ -129,6 +129,12 @@ enum wl1251_partition_type {
        PART_TABLE_LEN
 };
 
+enum wl1251_station_mode {
+       STATION_ACTIVE_MODE,
+       STATION_POWER_SAVE_MODE,
+       STATION_IDLE,
+};
+
 struct wl1251_partition {
        u32 size;
        u32 start;
@@ -249,6 +255,9 @@ struct wl1251_debugfs {
 
        struct dentry *retry_count;
        struct dentry *excessive_retries;
+
+       struct dentry *dump_nvs;
+       struct dentry *dump_full;
 };
 
 struct wl1251_if_operations {
@@ -272,6 +281,7 @@ struct wl1251 {
        void (*set_power)(bool enable);
        int irq;
        bool use_eeprom;
+       bool dump_eeprom;
 
        spinlock_t wl_lock;
 
@@ -309,7 +319,6 @@ struct wl1251 {
        bool tx_queue_stopped;
 
        struct work_struct tx_work;
-       struct work_struct filter_work;
 
        /* Pending TX frames */
        struct sk_buff *tx_frames[16];
@@ -358,8 +367,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;
@@ -387,6 +395,8 @@ struct wl1251 {
 
        /* Most recently reported noise in dBm */
        s8 noise;
+
+       void *eeprom_dump;
 };
 
 int wl1251_plt_start(struct wl1251 *wl);