]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: convert sleep/wake config direct commands
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Wed, 26 Mar 2008 12:22:11 +0000 (13:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 21:13:17 +0000 (17:13 -0400)
commitfea207b23969cd5f6fb89ecb79b1604258ef5d74
tree9fa3aafbffe64122a7bcb8c7e2d8ae117ab65b8a
parent51100b4543b685058c72a1b1bda1b60f3682adf4
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>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/hostcmd.h
drivers/net/wireless/libertas/main.c