p54spi: fix p54spi_tx_frame DMA transfer initiation and skb cleanup
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 26 Mar 2009 03:38:25 +0000 (06:38 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:27 +0000 (16:54 -0400)
commit4f5cab969bdbec1ab0c5b690282372b4978123ac
tree86e829b073bf47b1dcd01abfe13d9e668dd49a8c
parent684d6b360222f31b6b9be9a63aa5c6ed5674c890
p54spi: fix p54spi_tx_frame DMA transfer initiation and skb cleanup

p54spi_tx_frame wasn't waiting for HOST_ALLOWED in SPI_ADRS_DMA_WRITE_CTRL.
This resulted in frequent 'WR_READY timeout' on beacon resubmission.

Also don't free skb on error path, as it gets freed on p54spi_wq_tx.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c