aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/if_spi.c')
-rw-r--r--drivers/net/wireless/libertas/if_spi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
index fe3f08028eb3..3965c6cf504a 100644
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -800,14 +800,16 @@ static int lbs_spi_thread(void *data)
800 goto err; 800 goto err;
801 } 801 }
802 802
803 if (hiStatus & IF_SPI_HIST_CMD_UPLOAD_RDY) 803 if (hiStatus & IF_SPI_HIST_CMD_UPLOAD_RDY) {
804 err = if_spi_c2h_cmd(card); 804 err = if_spi_c2h_cmd(card);
805 if (err) 805 if (err)
806 goto err; 806 goto err;
807 if (hiStatus & IF_SPI_HIST_RX_UPLOAD_RDY) 807 }
808 if (hiStatus & IF_SPI_HIST_RX_UPLOAD_RDY) {
808 err = if_spi_c2h_data(card); 809 err = if_spi_c2h_data(card);
809 if (err) 810 if (err)
810 goto err; 811 goto err;
812 }
811 813
812 /* workaround: in PS mode, the card does not set the Command 814 /* workaround: in PS mode, the card does not set the Command
813 * Download Ready bit, but it sets TX Download Ready. */ 815 * Download Ready bit, but it sets TX Download Ready. */