aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/dev.h
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-03-26 08:22:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-01 17:13:17 -0400
commitf539f2efe9fdf9e7db2022a757190858576d34fd (patch)
tree9fa3aafbffe64122a7bcb8c7e2d8ae117ab65b8a /drivers/net/wireless/libertas/dev.h
parent7460f5a69055357bf97f1890db547aba0c4bf2fa (diff)
libertas: convert sleep/wake config direct commands
Confirm sleep event: they come very regularly, eventually several times per second. Therefore we want to send the config command as fast as possible. The old code pre-set the command in priv->lbs_ps_confirm_sleep. However, the byte sequence to be sent to the hardware is the same for all interfaces. So this patch make this an extern structure, initialized at module load time. Config wake event: normal conversion to a direct command. However, I don't know how to trigger a "HOST AWAKE" event from the firmware, so this part is untested. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/dev.h')
-rw-r--r--drivers/net/wireless/libertas/dev.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h
index 8e770dd6ef6b..3f3e7f6e68b3 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -267,9 +267,6 @@ struct lbs_private {
267 char ps_supported; 267 char ps_supported;
268 u8 needtowakeup; 268 u8 needtowakeup;
269 269
270 struct PS_CMD_ConfirmSleep lbs_ps_confirm_sleep;
271 struct cmd_header lbs_ps_confirm_wake;
272
273 struct assoc_request * pending_assoc_req; 270 struct assoc_request * pending_assoc_req;
274 struct assoc_request * in_progress_assoc_req; 271 struct assoc_request * in_progress_assoc_req;
275 272
@@ -326,6 +323,8 @@ struct lbs_private {
326 u8 fw_ready; 323 u8 fw_ready;
327}; 324};
328 325
326extern struct cmd_confirm_sleep confirm_sleep;
327
329/** Association request 328/** Association request
330 * 329 *
331 * Encapsulates all the options that describe a specific assocation request 330 * Encapsulates all the options that describe a specific assocation request