diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-03-11 22:26:00 +0100 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-03-11 22:26:00 +0100 |
commit | 0f4df475c4bf02803e502ba5b82857018df29418 (patch) | |
tree | f4631e4ce9c45cb05a5f0a5bb558b7cacf578945 /at76_usb.h | |
parent | e373224c8c4938561d2c46d0a82763b78cd645ad (diff) |
cleanup PM code a bit:
* rename PM_* constants
* drop superflous parameter from set_pm_mode
* get rid of dev->pm_beacon_period
* reset pm_mode to off in ad-hoc and monitor mode (actually allow to turn of PM at all)
* set pm capabilities in iw_handler_get_range()
* iw_handler_set_range(): reject timeouts values, they're unsupported
* drop pm_period and pm_mode module parameters
Diffstat (limited to 'at76_usb.h')
-rw-r--r-- | at76_usb.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -100,9 +100,9 @@ #define TX_RATE_AUTO 4 /* power management modes */ -#define PM_ACTIVE 1 -#define PM_SAVE 2 -#define PM_SMART_SAVE 3 +#define AT76_PM_OFF 1 +#define AT76_PM_ON 2 +#define AT76_PM_SMART 3 /* international roaming state */ #define IR_OFF 0 @@ -556,10 +556,8 @@ struct at76c503 { struct timer_list mgmt_timer; /* the timer we use to repeat auth_req etc. */ int retries; /* counts backwards while re-trying to send auth/assoc_req's */ u16 assoc_id; /* the assoc_id for states JOINING, REASSOCIATING, CONNECTED */ - u8 pm_mode; /* power management mode: ACTIVE, SAVE, SMART_SAVE */ - u32 pm_period_us; /* power manag. period (in us ?) - set by iwconfig */ - u32 pm_period_beacon; /* power manag. period (in beacon intervals - of the curr_bss) */ + u8 pm_mode; /* power management mode: AT76_PM_{OFF, ON, SMART} */ + u32 pm_period; /* power manag. period in us */ u32 board_type; /* BOARDTYPE_* in at76_usb_ids.h */ struct reg_domain const *domain; /* the description of the regulatory domain */ |