]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix buffer handling of PS_MODE commands and responses
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 17 Dec 2007 04:26:54 +0000 (23:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:07:40 +0000 (15:07 -0800)
commit88678e3f746a63cea2007d2bc42f58ff2ad46d58
tree22ed117ba98a7a26fe4ed91ba3e04115853957e8
parentdbccfd2654dc587cc1035c53c3ab7a9dbcf0ae07
libertas: fix buffer handling of PS_MODE commands and responses

Commit 5b8845345e7385d2eb37fac22ba9ab6905988be5 (or, in case the git
workflow is broken and patches get recommitted, the commit entitled
'libertas: rename and re-type bufvirtualaddr to cmdbuf' by dcbw),
introduced a number of bugs where we once had a pointer to a command
_payload_, but now we use the pointer to the command header instead.

The fix isn't wonderfully pretty for now, but it'll get better when we
finish converting all commands so the structures include the header.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmdresp.c